@@ -310,24 +310,24 @@ namespace Rcpp{
310310 IntegerVector d_dims, d_i, d_p;
311311 Vector<RTYPE> xx ;
312312 };
313- // Deprecated
314- template <typename T>
315- class Exporter <Eigen::MappedSparseMatrix<T> > {
316- public:
317- const static int RTYPE = ::Rcpp::traits::r_sexptype_traits<T>::rtype ;
318- Exporter (SEXP x) : d_x(x), d_dims(d_x.slot(" Dim" )), d_i(d_x.slot(" i" )), d_p(d_x.slot(" p" )), xx( d_x.slot(" x" ) ) {
319- if (!d_x.is (" dgCMatrix" ))
320- throw std::invalid_argument (" Need S4 class dgCMatrix for a mapped sparse matrix" );
321- }
322- Eigen::MappedSparseMatrix<T> get () {
323- return Eigen::MappedSparseMatrix<T>(d_dims[0 ], d_dims[1 ], d_p[d_dims[1 ]],
324- d_p.begin (), d_i.begin (), xx.begin () );
325- }
326- protected:
327- S4 d_x;
328- IntegerVector d_dims, d_i, d_p;
329- Vector<RTYPE> xx ;
330- };
313+ // // Deprecated
314+ // template<typename T>
315+ // class Exporter<Eigen::MappedSparseMatrix<T> > {
316+ // public:
317+ // const static int RTYPE = ::Rcpp::traits::r_sexptype_traits<T>::rtype ;
318+ // Exporter(SEXP x) : d_x(x), d_dims(d_x.slot("Dim")), d_i(d_x.slot("i")), d_p(d_x.slot("p")), xx( d_x.slot("x") ) {
319+ // if (!d_x.is("dgCMatrix"))
320+ // throw std::invalid_argument("Need S4 class dgCMatrix for a mapped sparse matrix");
321+ // }
322+ // Eigen::MappedSparseMatrix<T> get() {
323+ // return Eigen::MappedSparseMatrix<T>(d_dims[0], d_dims[1], d_p[d_dims[1]],
324+ // d_p.begin(), d_i.begin(), xx.begin() );
325+ // }
326+ // protected:
327+ // S4 d_x;
328+ // IntegerVector d_dims, d_i, d_p;
329+ // Vector<RTYPE> xx ;
330+ // };
331331
332332 // Starting from Eigen 3.3 MappedSparseMatrix was deprecated.
333333 // The new type is Map<SparseMatrix>.
@@ -348,24 +348,24 @@ namespace Rcpp{
348348 IntegerVector d_dims, d_j, d_p;
349349 Vector<RTYPE> xx ;
350350 };
351- // Deprecated
352- template <typename T>
353- class Exporter <Eigen::MappedSparseMatrix<T, Eigen::RowMajor> > {
354- public:
355- const static int RTYPE = ::Rcpp::traits::r_sexptype_traits<T>::rtype ;
356- Exporter (SEXP x) : d_x(x), d_dims(d_x.slot(" Dim" )), d_j(d_x.slot(" j" )), d_p(d_x.slot(" p" )), xx( d_x.slot(" x" ) ) {
357- if (!d_x.is (" dgRMatrix" ))
358- throw std::invalid_argument (" Need S4 class dgRMatrix for a mapped sparse matrix" );
359- }
360- Eigen::MappedSparseMatrix<T, Eigen::RowMajor> get () {
361- return Eigen::MappedSparseMatrix<T, Eigen::RowMajor>(d_dims[0 ], d_dims[1 ], d_p[d_dims[1 ]],
362- d_p.begin (), d_j.begin (), xx.begin () );
363- }
364- protected:
365- S4 d_x;
366- IntegerVector d_dims, d_j, d_p;
367- Vector<RTYPE> xx ;
368- };
351+ // // Deprecated
352+ // template<typename T>
353+ // class Exporter<Eigen::MappedSparseMatrix<T, Eigen::RowMajor> > {
354+ // public:
355+ // const static int RTYPE = ::Rcpp::traits::r_sexptype_traits<T>::rtype ;
356+ // Exporter(SEXP x) : d_x(x), d_dims(d_x.slot("Dim")), d_j(d_x.slot("j")), d_p(d_x.slot("p")), xx( d_x.slot("x") ) {
357+ // if (!d_x.is("dgRMatrix"))
358+ // throw std::invalid_argument("Need S4 class dgRMatrix for a mapped sparse matrix");
359+ // }
360+ // Eigen::MappedSparseMatrix<T, Eigen::RowMajor> get() {
361+ // return Eigen::MappedSparseMatrix<T, Eigen::RowMajor>(d_dims[0], d_dims[1], d_p[d_dims[1]],
362+ // d_p.begin(), d_j.begin(), xx.begin() );
363+ // }
364+ // protected:
365+ // S4 d_x;
366+ // IntegerVector d_dims, d_j, d_p;
367+ // Vector<RTYPE> xx ;
368+ // };
369369
370370 template <typename T>
371371 class Exporter <Eigen::SparseMatrix<T> > {
0 commit comments