Bug567 : Fix iterative solvers to immediately return when the initial guess is the true solution and for trivial solution

This commit is contained in:
Desire NUENTSA
2013-03-20 16:15:18 +01:00
parent 22460edb49
commit da6219b19d
4 changed files with 59 additions and 32 deletions

View File

@@ -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);
}