[Rcpp-devel] RcppArmadillo and sugar

Davor Cubranic cubranic at stat.ubc.ca
Wed Aug 18 06:56:05 CEST 2010


On August 17, 2010 03:26:15 am Romain Francois wrote:
> After the last thread, I looked again at armadillo and came up with a
> way to make it aware of Rcpp sugar, so that we can create an
> armadillo matrix from an Rcpp sugar expression, without having to
> assign the expression into an Rcpp vector.
[...]
> The name forward might not be the right verb here, I was also
> thinking about "melt" so that we melt sugar into caramel, but I'd
> like to hear what others do with sugar.

Can we use the same name that we already use for conversion of Rcpp 
types to Armadillos? ('Rcpp::as'?) Conceptually, does it really matter 
if we're melting a sugar expression or a plain old NumericVector?

Davor


More information about the Rcpp-devel mailing list