mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-02 00:34:14 +08:00
Fix Cholmod support without evaluators
This commit is contained in:
parent
fbb53b6cbb
commit
f9580a3473
@ -237,13 +237,13 @@ class CholmodBase : public SparseSolverBase<Derived>
|
|||||||
* \sa compute()
|
* \sa compute()
|
||||||
*/
|
*/
|
||||||
template<typename Rhs>
|
template<typename Rhs>
|
||||||
inline const internal::sparse_solve_retval<Derived, Rhs>
|
inline const internal::sparse_solve_retval<CholmodBase, Rhs>
|
||||||
solve(const SparseMatrixBase<Rhs>& b) const
|
solve(const SparseMatrixBase<Rhs>& b) const
|
||||||
{
|
{
|
||||||
eigen_assert(m_isInitialized && "LLT is not initialized.");
|
eigen_assert(m_isInitialized && "LLT is not initialized.");
|
||||||
eigen_assert(rows()==b.rows()
|
eigen_assert(rows()==b.rows()
|
||||||
&& "CholmodDecomposition::solve(): invalid number of rows of the right hand side matrix b");
|
&& "CholmodDecomposition::solve(): invalid number of rows of the right hand side matrix b");
|
||||||
return internal::sparse_solve_retval<Derived, Rhs>(derived(), b.derived());
|
return internal::sparse_solve_retval<CholmodBase, Rhs>(*this, b.derived());
|
||||||
}
|
}
|
||||||
#endif // EIGEN_TEST_EVALUATORS
|
#endif // EIGEN_TEST_EVALUATORS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user