Skip to content

[Rcpp-devel] [Rcpp-commits] r442 - in pkg: inst src src/Rcpp

1 message · Romain Francois

#
Some comments on this commit.

Instead of manually doing copy and paste between IntegerVector, 
NumericVector, LogicalVector, ComplexVector and RawVector every time I 
change something in one of them (e.g. adding matrix indexing),  I now 
let C++ templates do the work. It is much more accurate than me.

This way we get matrix indexing for all simple vector types for free.

It is completely transparent to the user.

I'll do something similar later about the complicated vector 
(GenericVector, ExpressionVector, CharacterVector), since they share 
even more (all of them are basically arrays of SEXP)
On 01/24/2010 07:21 PM, noreply at r-forge.r-project.org wrote: