Skip to content
Snippets Groups Projects
Commit 592f7760 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

[Math/EigenLS] output iterations and residual even it failed

parent e4ee93cc
No related branches found
No related tags found
No related merge requests found
...@@ -87,14 +87,14 @@ public: ...@@ -87,14 +87,14 @@ public:
} }
x = _solver.solveWithGuess(b, x); 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) { if(_solver.info()!=Eigen::Success) {
ERR("Failed during Eigen linear solve"); ERR("Failed during Eigen linear solve");
return false; return false;
} }
INFO("\t iteration: %d/%ld", _solver.iterations(), opt.max_iterations);
INFO("\t residual: %e\n", _solver.error());
return true; 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