mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +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>
|
template<typename Rhs,typename Dest>
|
||||||
void _solve_impl(const MatrixBase<Rhs>& b, Dest& x) const
|
void _solve_impl(const MatrixBase<Rhs>& b, Dest& x) const
|
||||||
{
|
{
|
||||||
x.setOnes();
|
x.setZero();
|
||||||
_solve_with_guess_impl(b.derived(),x);
|
_solve_with_guess_impl(b.derived(),x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user