[Rcpp-devel] can one modify array in R memory from C++ without copying it?

Christian Gunning xian at unm.edu
Thu Nov 3 02:53:53 CET 2011

On Wed, Nov 2, 2011 at 4:00 AM,
<rcpp-devel-request at r-forge.wu-wien.ac.at> wrote:
> 1. in my previous post  i used exactly that same constructor you are
> talking about as you can see from the code i posted

Sorry about that, completely missed it...
Using what's below, this should work fine.

> 3. i am not 100% sure but this toy test that i did seem to indicate to me
> that a copy is done regardless by NumericalMatrix. I need to see the code
> for NumericMatrix to be absolutely sure, but i cannot explain things
> otherwise

This is a little tricky, I almost missed it myself (again).

More information about the Rcpp-devel mailing list