[Rcpp-commits] r1589 - pkg/Rcpp

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jun 18 09:45:36 CEST 2010


Author: romain
Date: 2010-06-18 09:45:36 +0200 (Fri, 18 Jun 2010)
New Revision: 1589

Modified:
   pkg/Rcpp/TODO
Log:
TODO

Modified: pkg/Rcpp/TODO
===================================================================
--- pkg/Rcpp/TODO	2010-06-18 07:11:32 UTC (rev 1588)
+++ pkg/Rcpp/TODO	2010-06-18 07:45:36 UTC (rev 1589)
@@ -47,7 +47,16 @@
 
     o   duplicated, unique, count, sum, rep, head, tail
     
-    o	for matrices: row, col, lower_tri, upper_tri
+    o	for matrices: we first need CRTP with matrix interface, so we need to
+    	make Matrix inherit from MatrixBase and make MatrixBase a template that
+    	implements CRTP and a matrix interface: 
+    		- operator[]                (treating the matrix as a vector)
+    		- operator()( int, int )    (matrix indexing)
+    		- nrow                      (number of rows)
+    		- ncol                      (number of columns)     
+    		- size                      (nrow*ncol)
+    	
+    o	matrix functions : row, col, lower_tri, upper_tri
 	
     o   other operators: /, *, ...
     



More information about the Rcpp-commits mailing list