Skip to content
Snippets Groups Projects
Commit bd789c2a authored by Dmitri Naumov's avatar Dmitri Naumov Committed by GitHub
Browse files

Merge pull request #1499 from norihiro-w/fix-EigenLS-output

[Math/EigenLS] output iterations and residual even when it failed
parents e4ee93cc 592f7760
No related branches found
No related tags found
No related merge requests found
......@@ -87,14 +87,14 @@ public:
}
x = _solver.solveWithGuess(b, x);
INFO("\t iteration: %d/%ld", _solver.iterations(), opt.max_iterations);
INFO("\t residual: %e\n", _solver.error());
if(_solver.info()!=Eigen::Success) {
ERR("Failed during Eigen linear solve");
return false;
}
INFO("\t iteration: %d/%ld", _solver.iterations(), opt.max_iterations);
INFO("\t residual: %e\n", _solver.error());
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment