[Rcpp-devel] How many copies of my object do I make?

Douglas Bates bates at stat.wisc.edu
Tue Dec 10 18:49:11 CET 2013


On Tue, Dec 10, 2013 at 11:48 AM, Douglas Bates <bates at stat.wisc.edu> wrote:

> You can avoid one copy operation by declaring X as
>  const MSpMat X(as<MSpMat>(xx_));

xx_ should be XX_.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131210/abb20916/attachment.html>

More information about the Rcpp-devel mailing list