Re: [Rcpp-devel] Pointer to Rcpp::NumericMatrix

2012-05-29 Thread c s
On Tue, May 29, 2012 at 9:43 PM, Dirk Eddelbuettel wrote: > You could look at examples/ConvolveBenchmarks where (for the vector case) a > number of different access mechanisms are compared and times, including > iterators as well as fallbacks to pointers. > > If it helps, RcppArmadillo and RcppEig

Re: [Rcpp-devel] Pointer to Rcpp::NumericMatrix

2012-05-29 Thread Dirk Eddelbuettel
Hi Simon, On 29 May 2012 at 12:18, Simon Fuller wrote: | Hello, | | I would like to use a pointer to an Rcpp::NumericMatrix to operate | upon elements, linearly, row by row. | | For Rcpp::NumericVector this seems easy, since I can use a | straightforward iterator, i.e. | | Rcpp::NumericVector: