[Rcpp-devel] Deep copying a matrix

Etienne B. Racine etiennebr at gmail.com
Thu Jul 14 20:39:23 CEST 2011


Dirk Eddelbuettel wrote:

>
> Doug first wrote:
>
> | >> I would rewrite your code fragment as
> | >>
> | >>    const Rcpp::NumericMatrix  m_source(origin);
> | >>    Rcpp::NumericMatrix m_copy = Rcpp::clone(m_source);
>
> Seconded.
>


> If Etienne needs new behaviour very badly, he may have to look into
> contributing it, or providing funding which may give a higher chance to
> have
> this getting push up on the priority list.
>
> No, I don't need it badly. (I have more than enough features to learn from
Rcpp !) I was trying to wrap my head around Rcpp and getting back to c++
after spending years in R.

Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110714/eece02e9/attachment.htm>


More information about the Rcpp-devel mailing list