In my code, I have an Armadillo column vector v (i.e., an 'arma::vec') that I
return as a member of a list:
arma::vec v(...);
List result = List::create(_["v"] = v);
In R, result$v becomes a matrix, so I need to call 'as.vector(v)' to turn it
into a vector. Even explicitly returning a Num
Thank you both for the valuable info, I am looking forward to trying
this out as soon as I can (i've had no time in the past few days).
All the best,
baptiste
On 26 April 2010 10:09, Romain Francois wrote:
> And now, with the new macros (see the thread "[Rcpp-devel] any
> preprocessor expert a