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
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:
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::iterator it = myVector->begin();
But for NumericMatrix this seems more di