[Rcpp-commits] r1279 - pkg/RcppArmadillo/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed May 19 09:16:27 CEST 2010


Author: romain
Date: 2010-05-19 09:16:27 +0200 (Wed, 19 May 2010)
New Revision: 1279

Modified:
   pkg/RcppArmadillo/src/fastLm.cpp
Log:
s/stderr/std_err/ because apparently we cannot use the name stderr on windows

Modified: pkg/RcppArmadillo/src/fastLm.cpp
===================================================================
--- pkg/RcppArmadillo/src/fastLm.cpp	2010-05-18 19:40:45 UTC (rev 1278)
+++ pkg/RcppArmadillo/src/fastLm.cpp	2010-05-19 07:16:27 UTC (rev 1279)
@@ -36,10 +36,10 @@
 
 	double s2 = std::inner_product(res.begin(), res.end(), res.begin(), double())/(n - k);
 							// std.errors of coefficients
-	arma::colvec stderr = arma::sqrt(s2 * arma::diagvec( arma::inv(arma::trans(X)*X) ));	
+	arma::colvec std_err = arma::sqrt(s2 * arma::diagvec( arma::inv(arma::trans(X)*X) ));	
 
 	return Rcpp::List::create(Rcpp::Named("coefficients") = coef,
-				  Rcpp::Named("stderr")       = stderr,
+				  Rcpp::Named("stderr")       = std_err,
 				  Rcpp::Named("df")           = n - k
 				  );
 



More information about the Rcpp-commits mailing list