[Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

Dirk Eddelbuettel edd at debian.org
Fri Apr 12 13:52:43 CEST 2013


On 12 April 2013 at 07:34, Dale Smith wrote:
| I did indeed read about the constructor but misinterpreted the statement - my bad. Your suggestion is a good one to try so I will benchmark my RESET test code with the various suggestions, including join as Dirk suggested.

Conrad's suggestion was (of course) even better because once you declare the
memory chunk you access as modifiable, you should be able to extend as you
had attempted, without forcing a copy (as I did with either approach).

Dirk
 
-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list