[Rcpp-commits] r3381 - in pkg/RcppArmadillo: . inst/unitTests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Nov 17 15:10:00 CET 2011


Author: romain
Date: 2011-11-17 15:10:00 +0100 (Thu, 17 Nov 2011)
New Revision: 3381

Modified:
   pkg/RcppArmadillo/ChangeLog
   pkg/RcppArmadillo/inst/unitTests/runit.RcppArmadillo.R
Log:
logging changes

Modified: pkg/RcppArmadillo/ChangeLog
===================================================================
--- pkg/RcppArmadillo/ChangeLog	2011-11-17 14:04:07 UTC (rev 3380)
+++ pkg/RcppArmadillo/ChangeLog	2011-11-17 14:10:00 UTC (rev 3381)
@@ -1,3 +1,15 @@
+2011-11-17  Romain Francois <romain at r-enthusiasts.com>
+    
+    * inst/include/RcppArmadilloSugar.h: reworked forwarding sugar expressions
+    to arma expressions. No need for the "forward" function anymore. For now, 
+    we kept forward as a templated identity function for backwards compatibility
+    but it is not needed anymore
+    
+    * inst/include/RcppArmadillo/Mat_meat.h: reworked handling of complex values
+    
+    * inst/unitTests/runit.RcppArmadillo.R: removed uses of forward as we don't
+    need it anymore. 
+
 2011-11-16  Romain Francois <romain at r-enthusiasts.com>
     
     * inst/include/RcppArmadilloForward.h: support for the new arma classes

Modified: pkg/RcppArmadillo/inst/unitTests/runit.RcppArmadillo.R
===================================================================
--- pkg/RcppArmadillo/inst/unitTests/runit.RcppArmadillo.R	2011-11-17 14:04:07 UTC (rev 3380)
+++ pkg/RcppArmadillo/inst/unitTests/runit.RcppArmadillo.R	2011-11-17 14:10:00 UTC (rev 3381)
@@ -247,7 +247,7 @@
 
     fx <- cxxfunction( signature(x= "numeric") , '
     NumericVector xx(x) ;
-    arma::mat m = forward( xx + xx ) ;
+    arma::mat m = xx + xx ;
     return wrap( m ) ;
 
     ', plugin = "RcppArmadillo" )
@@ -261,7 +261,7 @@
 
     fx <- cxxfunction( signature(x= "complex") , '
     ComplexVector xx(x) ;
-    arma::cx_mat m = forward( exp( xx ) ) ;
+    arma::cx_mat m = exp( xx ) ;
 
     return wrap( m ) ;
 



More information about the Rcpp-commits mailing list