Hi, On 17 August 2010 03:24, Dirk Eddelbuettel <e...@debian.org> wrote: > > On 16 August 2010 at 19:43, Dirk Eddelbuettel wrote:
[...] > The only trouble is that nobody has written the corresponding 'glue' code to > make > > arma::cx_vec a1(y1.begin(), y1.size(), false); > > happen: create an Armadillo complex vector from an Rcpp::ComplexVector. We > can init by scalar size, what you'd need to insert for now is a simply (and > very pedestrian) copy-loop. I'm confused, isn't arma::cx_colvec a1 = Rcpp::as< arma::cx_vec >( y1 ); aimed at doing this kind of conversion? (that's what I use, following Romain's tip) baptiste _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel