search for: realspx

Displaying 1 result from an estimated 1 matches for "realspx".

Did you mean: realsox
2016 Jan 10
3
coerce SEXP type to C++ matrix class and back
...a double matrix as argument and which uses routines provided by the C++ Armadillo package. I am aware of the nice capabilities of Rcpp and RcppArmadillo which helps simplifying a lot and that I have already successfully tested. However, I had a hard time trying to figure out how the coercion from a REALSPX matrix to an arma::mat = arma::Mat<double> matrix (double matrix in Armadillo) is done. In this particular case, because of the simplicity of my function, I would like to use base R only. Since both, Armadillo and R matrix elements, are stored with column-major ordering I have tried the follo...