[Rcpp-devel] Question regarding Rcpp/RcppArmadillo and Rcpp/sugar

Venelin Mitov vmitov at gmail.com
Mon Jul 16 19:46:13 CEST 2012


I am trying to use Rcpp for translating an R program in C++. There seems to
be some redundancy in the functionality provided by RcppArmadillo and pure
Rcpp, for example, one can use arma::vec instead of NumericVector and
arma::mat instead of NumericMatrix. And it is possible to evaluate
algebraic expressions with both classes. If I understand correctly,
RcppArmadillo relies on overloaded operators for the arma:: classes (+,-,
*...). On the other hand, these operations are made possible with
NumericMatrix with sugar, right?

So my question is: Is there a rule of thumb to choose between one or
another implementation?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20120716/e635e0d8/attachment.html>

More information about the Rcpp-devel mailing list