[Rcpp-commits] r3488 - pkg/RcppEigen/inst/include

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Mar 3 18:52:32 CET 2012


Author: dmbates
Date: 2012-03-03 18:52:32 +0100 (Sat, 03 Mar 2012)
New Revision: 3488

Modified:
   pkg/RcppEigen/inst/include/RcppEigenWrap.h
Log:
Correct a typo.


Modified: pkg/RcppEigen/inst/include/RcppEigenWrap.h
===================================================================
--- pkg/RcppEigen/inst/include/RcppEigenWrap.h	2012-02-28 14:26:45 UTC (rev 3487)
+++ pkg/RcppEigen/inst/include/RcppEigenWrap.h	2012-03-03 17:52:32 UTC (rev 3488)
@@ -159,7 +159,7 @@
 		template<typename T>
 		class Exporter<Eigen::Map<Eigen::Array<T, Eigen::Dynamic, 1> > > {
 		public:
-			typedef typename Eigen::Map<Eigen::Array<T, Eigen::Dynamic, 1> >  MVType;
+			typedef typename Eigen::Map<Eigen::Array<T, Eigen::Dynamic, 1> >  MAType;
 			Exporter(SEXP x) : d_size(::Rf_length(x)) {
 				const int RTYPE = ::Rcpp::traits::r_sexptype_traits<T>::rtype ;
 				if (TYPEOF(x) != RTYPE)
@@ -167,7 +167,7 @@
 				typedef typename ::Rcpp::traits::storage_type<RTYPE>::type STORAGE;
 				d_start         = ::Rcpp::internal::r_vector_start<RTYPE,STORAGE>(x);
 			}
-			MVType get() {return MVType(d_start, d_size);}
+			MAType get() {return MAType(d_start, d_size);}
 		protected:
 			const int d_size;
 			T*        d_start;
@@ -211,7 +211,7 @@
 					d_ncol = dims[1];
 				}
 			}
-			MAType get() {return MMType(d_start, d_nrow, d_ncol);}
+			MAType get() {return MAType(d_start, d_nrow, d_ncol);}
 		protected:
 			int   d_nrow, d_ncol;
 			T*    d_start;



More information about the Rcpp-commits mailing list