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 NumericVector doesn't help, as in: arma::vec v(...); List result = List::create(_["v"] = NumericVector(wrap(v))); Is this by design, a bug, or am I misusing the API? Davor _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
