Re: [Rcpp-devel] Access Rcpp::List element

2013-05-26 Thread Simon Zehnder
Hi Dirk, thanks for this bunch of information. I will work through it the next days. Your point with the rnorm-Function is indeed an essential one. It takes the most time, so that the remaining time is almost negligible. A timing inside a loop with a a lot of memory writing makes more sense,

Re: [Rcpp-devel] Access Rcpp::List element

2013-05-26 Thread Dirk Eddelbuettel
On 26 May 2013 at 18:41, Simon Zehnder wrote: | Apologize for being imprecise in my second question. I try to rephrase it here, so more members can understand: | | 2'. As performance is always a matter in statistical computations, | especially in simulations, it is of special interest to know,

Re: [Rcpp-devel] Access Rcpp::List element

2013-05-26 Thread Simon Zehnder
Dear Dirk, thanks for your fast reply to my questions. Apologize for being imprecise in my second question. I try to rephrase it here, so more members can understand: 2'. As performance is always a matter in statistical computations, especially in simulations, it is of special interest to kno

Re: [Rcpp-devel] Access Rcpp::List element

2013-05-26 Thread Dirk Eddelbuettel
Simon, On 26 May 2013 at 15:20, Simon Zehnder wrote: | Dear Rcpp::Devels and Rcpp::Users, | | I have maybe some trivial questions. | | 1. If I use | | Rcpp::NumericVector A(someVector), | | does it reuse memory from someVector for A? From http://cran.r-project.org/web/package