[Rcpp-devel] as<arma::cx_double>(x)

Dirk Eddelbuettel edd at debian.org
Wed Oct 26 15:27:19 CEST 2011


Doh. Never mind the last post.  Meant to grep -r in Armadillo, of course:

edd at max:~/svn/rcpp/pkg/RcppArmadillo/inst/include$ grep -rin cx_double . | grep -v svn-base
./armadillo_bits/typedef.hpp:81:typedef std::complex<double> cx_double;
./armadillo_bits/typedef.hpp:119:typedef Mat<cx_double>  cx_mat;
./armadillo_bits/typedef.hpp:120:typedef Col<cx_double>  cx_vec;
./armadillo_bits/typedef.hpp:121:typedef Col<cx_double>  cx_colvec;
./armadillo_bits/typedef.hpp:122:typedef Row<cx_double>  cx_rowvec;
./armadillo_bits/typedef.hpp:123:typedef Cube<cx_double> cx_cube;
edd at max:~/svn/rcpp/pkg/RcppArmadillo/inst/include$ 

So that explains cx_double.  We don't seem to be defining an explicit
operator for it.  Do you want to fill one in?

Dirk

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx


More information about the Rcpp-devel mailing list