Re: [Rcpp-devel] Some questions regarding internals of Rcpp objects

2011-08-06 Thread Dirk Eddelbuettel
Hi Ulrich, On 6 August 2011 at 06:40, Ulrich Bodenhofer wrote: | Dear Dirk, | | Thanks for your detailed comments! | | Regarding the first question: as I wrote, I was actually assuming that | Rcpp would not make deep copies. What we now all RcppClassic always copied deeply. That's how it was

Re: [Rcpp-devel] Some questions regarding internals of Rcpp objects

2011-08-06 Thread Romain Francois
Le 06/08/11 06:40, Ulrich Bodenhofer a écrit : Dear Dirk, Thanks for your detailed comments! Regarding the first question: as I wrote, I was actually assuming that Rcpp would not make deep copies. [...] See this variant: R> fun<- cxxfunction(signature(mat="numeric"), plugin="Rcpp", body=' +

Re: [Rcpp-devel] Some questions regarding internals of Rcpp objects

2011-08-05 Thread Ulrich Bodenhofer
Dear Dirk, Thanks for your detailed comments! Regarding the first question: as I wrote, I was actually assuming that Rcpp would not make deep copies. [...] See this variant: R> fun<- cxxfunction(signature(mat="numeric"), plugin="Rcpp", body=' + Rcpp::NumericMatrix matC(mat); + Rcp

Re: [Rcpp-devel] Some questions regarding internals of Rcpp objects

2011-08-05 Thread Dirk Eddelbuettel
Hi Ulrich, These are really several questions. I'll try to address them all, with some luck maybe Romain, Doug, Christian, ... will correct or complement as needed. On 5 August 2011 at 11:45, Ulrich Bodenhofer wrote: | Dear list members, | | I have started developing a package using the latest