Re: [Rcpp-devel] Compilation error using Rcpp::as

2012-05-08 Thread Jelmer Ypma
Dear Douglas, many thanks for your quick reply, that's exactly what I was looking for. Best wishes, Jelmer On Tue, May 8, 2012 at 5:33 PM, Douglas Bates wrote: > Thanks for the report.  It is a problem in the 'as' methods defined > for Eigen objects. > > I will fix that but I think what you are

Re: [Rcpp-devel] Compilation error using Rcpp::as

2012-05-08 Thread Douglas Bates
Thanks for the report. It is a problem in the 'as' methods defined for Eigen objects. I will fix that but I think what you are trying to do is more easily accomplished by using a copy constructor in C++, as in the enclosed On Tue, May 8, 2012 at 10:45 AM, Jelmer Ypma wrote: > Hi all, > > I've b

[Rcpp-devel] Compilation error using Rcpp::as

2012-05-08 Thread Jelmer Ypma
Hi all, I've been happily using the RcppEigen package for a couple of projects, but now I'm running into problems converting a matrix from R into an Eigen::MatrixXd. Converting an R matrix to an Eigen::Map works fine, but I would like to (deep)copy the values from R to a C++ Eigen::MatrixXd object