[Rcpp-commits] r2547 - pkg/Rcpp/inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Nov 27 10:21:26 CET 2010


Author: romain
Date: 2010-11-27 10:21:26 +0100 (Sat, 27 Nov 2010)
New Revision: 2547

Modified:
   pkg/Rcpp/inst/NEWS
Log:
NEWS

Modified: pkg/Rcpp/inst/NEWS
===================================================================
--- pkg/Rcpp/inst/NEWS	2010-11-27 02:22:10 UTC (rev 2546)
+++ pkg/Rcpp/inst/NEWS	2010-11-27 09:21:26 UTC (rev 2547)
@@ -1,7 +1,30 @@
 0.8.9   2010-11-28 
 
-    o   Lots of modules stuff to be filled in here 
-
+    o   Many improvements in modules, described in more details in the 
+        Rcpp-modules vignette: 
+        - exposing multiple constructors
+        - overloaded methods
+        - self documentation of classes, methods, constructors, fields and 
+          functions. 
+        - new R function "populate" to facilitate working with modules in 
+          packages. 
+        - formal argument specification of functions.
+        
+    o   New template class Rcpp::SubMatrix<RTYPE> and support syntax in Matrix
+        to extract a submatrix: 
+        
+        NumericMatrix x = ... ;
+        
+        // extract the first three columns
+        SubMatrix<REALSXP> y = x( _ , Range(0,2) ) ; 
+        
+        // extract the first three rows
+        SubMatrix<REALSXP> y = x( Range(0,2), _ ) ; 
+        
+        // extract the top 3x3 sub matrix
+        SubMatrix<REALSXP> y = x( Range(0,2), Range(0,2) ) ; 
+        
+    
 0.8.8   2010-11-01
 
     o   New syntactic shortcut to extract rows and columns of a Matrix. 



More information about the Rcpp-commits mailing list