diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-09-01 14:50:59 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-09-01 14:50:59 +0200 |
commit | bc065c75d2a8df928cb368d0352b8fcb25791fa8 (patch) | |
tree | b7cbf2328407c3fb09c7b6568a37aab60b8fd8dc /Eigen/src/SparseCore/SparseUtil.h | |
parent | e6cc24cbd60113c704d8f88293d4efdd1eef1b98 (diff) |
Implement the missing bits to make Solve compatible with sparse rhs
Diffstat (limited to 'Eigen/src/SparseCore/SparseUtil.h')
-rw-r--r-- | Eigen/src/SparseCore/SparseUtil.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparseUtil.h b/Eigen/src/SparseCore/SparseUtil.h index 0183907a1..28bf89bca 100644 --- a/Eigen/src/SparseCore/SparseUtil.h +++ b/Eigen/src/SparseCore/SparseUtil.h @@ -156,6 +156,14 @@ template<typename T> struct plain_matrix_type<T,Sparse> typedef SparseMatrix<_Scalar, _Options, _Index> type; }; +#ifdef EIGEN_TEST_EVALUATORS +template<typename Decomposition, typename RhsType> +struct solve_traits<Decomposition,RhsType,Sparse> +{ + typedef typename sparse_eval<RhsType, RhsType::RowsAtCompileTime, RhsType::ColsAtCompileTime>::type PlainObject; +}; +#endif + template<typename Derived> struct generic_xpr_base<Derived, MatrixXpr, Sparse> { |