[Rcpp-commits] r1321 - pkg/RcppGSL/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue May 25 15:19:51 CEST 2010
Author: romain
Date: 2010-05-25 15:19:50 +0200 (Tue, 25 May 2010)
New Revision: 1321
Modified:
pkg/RcppGSL/src/fastLm.cpp
Log:
nothing should be called 'stderr' on windows
Modified: pkg/RcppGSL/src/fastLm.cpp
===================================================================
--- pkg/RcppGSL/src/fastLm.cpp 2010-05-25 11:42:22 UTC (rev 1320)
+++ pkg/RcppGSL/src/fastLm.cpp 2010-05-25 13:19:50 UTC (rev 1321)
@@ -47,11 +47,11 @@
// currently there is not a more direct interface in Rcpp::NumericVector
// that takes advantage of wrap, so we have to do it in two steps
- Rcpp::NumericVector stderr ; stderr = diag;
- std::transform( stderr.begin(), stderr.end(), stderr.begin(), sqrt );
+ Rcpp::NumericVector std_err ; stderr = diag;
+ std::transform( std_err.begin(), std_err.end(), std_err.begin(), sqrt );
Rcpp::List res = Rcpp::List::create(Rcpp::Named("coefficients") = coef,
- Rcpp::Named("stderr") = stderr,
+ Rcpp::Named("stderr") = std_err,
Rcpp::Named("df") = n - k);
// free all the GSL vectors and matrices -- as these are really C data structure
More information about the Rcpp-commits
mailing list