[Rcpp-commits] r1743 - in pkg: . RcppExamples/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jun 25 19:09:28 CEST 2010


Author: edd
Date: 2010-06-25 19:09:27 +0200 (Fri, 25 Jun 2010)
New Revision: 1743

Modified:
   pkg/
   pkg/RcppExamples/src/RcppMatrixExample.cpp
Log:
set svn ignore on a three subdirectories (which may only be present on my box...)



Property changes on: pkg
___________________________________________________________________
Added: svn:ignore
   + build-area
releases
tarballs


Modified: pkg/RcppExamples/src/RcppMatrixExample.cpp
===================================================================
--- pkg/RcppExamples/src/RcppMatrixExample.cpp	2010-06-25 15:38:52 UTC (rev 1742)
+++ pkg/RcppExamples/src/RcppMatrixExample.cpp	2010-06-25 17:09:27 UTC (rev 1743)
@@ -34,7 +34,7 @@
     //   int n = mat.nrow(), k=mat.ncol();
     // and loop over the elements, but using the STL is so much nicer
     // so we use a STL transform() algorithm on each element
-    std::transform(orig.begin(), orig.end(), mat.begin(), sqrt);
+    std::transform(orig.begin(), orig.end(), mat.begin(), std::sqrt);
 
     return Rcpp::List::create( 
     	Rcpp::Named( "result" ) = mat, 



More information about the Rcpp-commits mailing list