Skip to content
Prev 4915 / 10988 Next

[Rcpp-devel] RcppArmadillo: resize vs. insert_cols

c s
Hi Ramon,

Option (b) would be more efficient, at the expense of slightly more code.

However, you can use option (a) to quickly get something working. Once you
test that your code works okay, you can always optimise it by selectively
refactoring it into (b).

If the code in question is not inside a critical loop, you may not need to
bother with the refactoring. Eg. if most of the time is spent inside matrix
multiplication, or solve(), or svd(), etc, refactoring would make little
overall difference.
On Monday, December 10, 2012, Ramon Diaz-Uriarte <rdiaz02 at gmail.com> wrote:
the_new_thing);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121210/9e171ebf/attachment.html>