mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Really use zero guess in ConjugateGradients::solve as documented
and expected for consistency with other methods.
This commit is contained in:
parent
8fdcaded5e
commit
168ceb271e
@ -208,7 +208,7 @@ public:
|
||||
template<typename Rhs,typename Dest>
|
||||
void _solve_impl(const MatrixBase<Rhs>& b, Dest& x) const
|
||||
{
|
||||
x.setOnes();
|
||||
x.setZero();
|
||||
_solve_with_guess_impl(b.derived(),x);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user