mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Bug567 : Fix iterative solvers to immediately return when the initial guess is the true solution and for trivial solution
This commit is contained in:
@@ -349,7 +349,7 @@ public:
|
||||
void _solve(const Rhs& b, Dest& x) const
|
||||
{
|
||||
x = b;
|
||||
if(!x.squaredNorm()) return; // Check Zero right hand side
|
||||
if(x.squaredNorm() == 0) return; // Check Zero right hand side
|
||||
_solveWithGuess(b,x);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user