[Rcpp-devel] Armadillo version in RcppArmadillo

Davor Cubranic cubranic at stat.ubc.ca
Thu Jul 15 20:37:16 CEST 2010


On 2010-07-15, at 10:55 AM, Dirk Eddelbuettel wrote:

> > (FYI, the error is caused by code 'chol(m).diag()', for some 'mat m'. I get "const class arma::Op<arma::Mat<double>, arma::op_chol>’ has no member named ‘diag’".)
> 
> Can you do a two-step and assign the result of chol(m) to an arma::Mat and
> then run diag() on it?

Yes, using "mat(chol(m)).diag()" fixes the error. Or is that less efficient than "mat c = chol(m); c.diag()"?

I'm now going to try the most recent release of Armadillo (0.9.52) to see if the error is still there.

Davor



More information about the Rcpp-devel mailing list