Re: [Rcpp-devel] list of matrices to Eigen matrices

2013-03-20 Thread Dirk Eddelbuettel
Mark, On 20 March 2013 at 13:03, M A wrote: | I have a list of matrices in R which I want to turn into a bunch of | Eigen matrices using RcppEigen. I found a way to do this, but it seems | unnecessarily tortured. Here's what I have: Nope, that is fine. (Apart from maybe doing with *pcv and stick

[Rcpp-devel] list of matrices to Eigen matrices

2013-03-20 Thread M A
I have a list of matrices in R which I want to turn into a bunch of Eigen matrices using RcppEigen. I found a way to do this, but it seems unnecessarily tortured. Here's what I have: // [[Rcpp::export]] void listMat(Rcpp::List mat_list) { int n_mats = mat_list.size(); std::vector vec_of_m