[Rcpp-devel] problem compiling with const in RcppEigen

Dirk Eddelbuettel edd at debian.org
Fri Feb 1 18:47:45 CET 2013


On 1 February 2013 at 10:26, M A wrote:
| The fundamental problem is, as you said, that RcppEigen doesn't know
| how to form an Eigen::Map<const Eigen::MatrixXd> with the as function.

Templates are initiated by the compiler based on what is available.  This
fails as nobody wrote one with this 'const' signature.  Now, if you want and
need it, maybe you could supply it?

The nice thing is that you can even do this locally first and test, and, if
you're so inclined, contribute it as a patch to RcppEigen later.  

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list