The important question is whether the as copies the contents of
the matrix from the SEXP passed by R. Creating an Rcpp::NumericMatrix does
not copy the contents and converting the NumericMatrix to an arma::mat with
that trailing 'false' also just copies the pointer to the contents, not the
content
Hello, Rcpp land.
I'm still collecting idioms and examples for the usage of Rcpp. Today
I'm looking at ways that people manage the importation of R matrices.
Consider fasLm.r file in the RcppArmadillo package's examples folder.
It uses this this three-step process to bring in a matrix from R. Thi