Hi guys,

I was wondering - is there a way to translate between Vectors and Matrices?
Eg, reinterpreting a 100 length NumericVector as a 10x10 NumericMatrix by
setting the dimensions explicitly, or something of that form; preferably
with a minimal amount of copying.

Alternatively, is there a preferred method for constructing a
NumericMatrix for output from a std::vector?

The motivation is primarily for reshaping of R objects through Rcpp. I
wasn't able to find anything specific in the vignettes.

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

Reply via email to