Implement the missing bits to make Solve compatible with sparse rhs

This commit is contained in:
Gael Guennebaud
2014-09-01 14:50:59 +02:00
parent e6cc24cbd6
commit bc065c75d2
3 changed files with 29 additions and 0 deletions

View File

@@ -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>
{