Replies: 1 comment 4 replies
-
We need to keep in mind the scope of our examples - they are supposed to show one limited use case. Loggers are indeed the currently intended way to access the final state of a solver or the "decisions" of stopping criteria. Alternatively, we could expose the The comment here describes the backward error: For the problem of finding x for given input b, the forward error is |
Beta Was this translation helpful? Give feedback.
-
The simple-solver example suggests to manually compute the residual norm to check if the solver has converged.
First, this is rather silly, because essentially all iterative solvers already have some internal knowledge if they converged or failed. There is no reason to recompute the residual just to check if the solver succeeded or failed. Even if I computed the residual norm and it was above my threshold, I wouldn't know if it failed due to exceeded iterations limit, time limit, numerical breakdown or something else. Is there a straightforward way to access the final solver status? I can see there is a custom-logger example, but that seems like an overkill to get just the final residual norm and iterations count.
Second, the comment is inaccurate as it says "you can measure the error of the solution", but the code computes just the residual and the true solution remains unknown.
Beta Was this translation helpful? Give feedback.
All reactions