[Rcpp-commits] r2572 - pkg/RcppGSL/inst/include
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Nov 28 23:14:31 CET 2010
Author: romain
Date: 2010-11-28 23:14:31 +0100 (Sun, 28 Nov 2010)
New Revision: 2572
Modified:
pkg/RcppGSL/inst/include/RcppGSLForward.h
Log:
make matrix public in matrix_view
Modified: pkg/RcppGSL/inst/include/RcppGSLForward.h
===================================================================
--- pkg/RcppGSL/inst/include/RcppGSLForward.h 2010-11-28 22:13:29 UTC (rev 2571)
+++ pkg/RcppGSL/inst/include/RcppGSLForward.h 2010-11-28 22:14:31 UTC (rev 2572)
@@ -151,18 +151,17 @@
typedef typename matrix_view_type<T>::type view_type ;
typedef typename matrix<T>::Proxy Proxy ;
- matrix_view( view_type view_ ) : view(view_), mat(&view_.matrix) {}
+ matrix_view( view_type view_ ) : view(view_), matrix(&view_.matrix) {}
inline operator view_type(){ return view; }
inline Proxy operator()(int row, int col){
- return mat(row,col);
+ return matrix(row,col);
}
- inline size_t nrow(){ return mat.nrow() ; }
- inline size_t ncol(){ return mat.ncol() ; }
- inline size_t size(){ return mat.size() ; }
+ inline size_t nrow(){ return matrix.nrow() ; }
+ inline size_t ncol(){ return matrix.ncol() ; }
+ inline size_t size(){ return matrix.size() ; }
view_type view ;
-private:
- MAT mat ;
+ MAT matrix ;
} ;
}
More information about the Rcpp-commits
mailing list