[Rcpp-commits] r1773 - pkg/Rcpp/inst/examples/FastLM
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Jul 4 05:05:16 CEST 2010
Author: edd
Date: 2010-07-04 05:05:15 +0200 (Sun, 04 Jul 2010)
New Revision: 1773
Modified:
pkg/Rcpp/inst/examples/FastLM/lmGSL.R
Log:
new API update
Modified: pkg/Rcpp/inst/examples/FastLM/lmGSL.R
===================================================================
--- pkg/Rcpp/inst/examples/FastLM/lmGSL.R 2010-07-04 03:04:48 UTC (rev 1772)
+++ pkg/Rcpp/inst/examples/FastLM/lmGSL.R 2010-07-04 03:05:15 UTC (rev 1773)
@@ -25,10 +25,10 @@
src <- '
- RcppVectorView<double> Yr(Ysexp);
- RcppMatrixView<double> Xr(Xsexp);
+ Rcpp::NumericVector Yr(Ysexp);
+ Rcpp::NumericMatrix Xr(Xsexp);
- int i,j,n = Xr.dim1(), k = Xr.dim2();
+ int i,j,n = Xr.nrow(), k = Xr.ncol();
double chisq;
gsl_matrix *X = gsl_matrix_alloc (n, k);
More information about the Rcpp-commits
mailing list