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

baptiste auguie baptiste.auguie at googlemail.com
Wed Oct 26 22:29:14 CEST 2011


Hi,



On 27 October 2011 02:27, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> 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?


I'd like to do that.. but have no clue where/how such operators would
be defined in RcppArmadillo.

Thanks,

baptiste

>
> 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