Skip to content
Prev 5683 / 10988 Next

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

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