IntroductionIt is no secret that sparse matrix operations are faster in C++ than in R.
RcppArmadillo and RcppEigen accomplish a great job copying sparse matrices from R to C++ and back again.
But note the word “copy”.
Every time RcppArmadillo converts an ...
The post Constructing a Sparse Matrix course in Rcpp first appeared on R-bloggers.
Source: r-bloggers.com