add specialization ei_ref_selector for sparse matrix types

This commit is contained in:
Gael Guennebaud
2009-12-01 06:21:29 +01:00
parent e6c560aedf
commit b2a5fb874f
4 changed files with 22 additions and 2 deletions

View File

@@ -57,6 +57,13 @@ struct ei_traits<DynamicSparseMatrix<_Scalar, _Flags> >
};
};
template<typename _Scalar, int _Options>
struct ei_ref_selector< DynamicSparseMatrix<_Scalar, _Options> >
{
typedef DynamicSparseMatrix<_Scalar, _Options> MatrixType;
typedef MatrixType const& type;
};
template<typename _Scalar, int _Flags>
class DynamicSparseMatrix
: public SparseMatrixBase<DynamicSparseMatrix<_Scalar, _Flags> >