Skip to content
Prev 5442 / 10988 Next

[Rcpp-devel] Initiate NumericMatrix in class constructor from S4 slot

Hi Romain,

first let me thank you for the very fast and informative answer!

I suppose, as SEXP is a pointer, that these attempts reuse the memory allocated in R, right? Further, I presume, that I proceed in the same way for lists from R to Rcpp, don't I?

In regard to the initialisation list:

I have in my class over 10 different objects, so up to now I refused to use the initialising list. But you are right, that in regard to performance (copying etc.) the
initialising list is indisputable. So I gonna use it. 

Thanks again Romain!

Best

Simon
On Mar 6, 2013, at 8:23 AM, Romain Francois <romain at r-enthusiasts.com> wrote: