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

_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to