[Rcpp-devel] how to reference a row of a matrix in C++ in Rcpp

Serguei Sokol serguei.sokol at gmail.com
Tue Mar 20 17:32:11 CET 2018

Le 20/03/2018 à 17:22, Dirk Eddelbuettel a écrit :
> Akshay,
> On 20 March 2018 at 15:54, akshay kulkarni wrote:
> | Can I also write this:
> |
> | M[1:i, n:m] as we write in R?
> Please consider to stop posting elementary C++ beginners question to the
> list.  We do not provide as a C++ tutorial or training service here.  Please
> learn at least /some/ C++ after which a re-reading of the Rcpp documentation
> will make more sense to you.

However, to reach a point I can say that certainly RcppEigen will allow you to do this
with block operations you have already mentioned. But also RcppArmadillo is another
alternative well suited for this kind of basic operations.
You'll have some homework on your side ;)


> Thanks, Dirk

More information about the Rcpp-devel mailing list