Re: [Rcpp-devel] copying or not when convering to arma

2013-07-11 Thread Gabor Grothendieck
On Thu, Jul 11, 2013 at 3:50 AM, Dirk Eddelbuettel wrote: > > On 10 July 2013 at 11:58, Gabor Grothendieck wrote: > | Suppose we have this program where we have started and ended with SEXP > | and written out the as and wrap conversions to make them explicit. > | > | How many times is the data cop

Re: [Rcpp-devel] copying or not when convering to arma

2013-07-11 Thread Dirk Eddelbuettel
On 10 July 2013 at 11:58, Gabor Grothendieck wrote: | Suppose we have this program where we have started and ended with SEXP | and written out the as and wrap conversions to make them explicit. | | How many times is the data copied? | Does as copy the underlying data? | Does wrap? | Is it copied

[Rcpp-devel] copying or not when convering to arma

2013-07-10 Thread Gabor Grothendieck
Suppose we have this program where we have started and ended with SEXP and written out the as and wrap conversions to make them explicit. How many times is the data copied? Does as copy the underlying data? Does wrap? Is it copied elsewhere? Which file in the source code would one look to determin