|
| template<Vector V> |
| | cyclic_iteration (const V &r0, int max_iter, Real rtol, int cycle=100, Real atol=Real(0), std::ostream &out=std::cout) |
| | cyclic_iteration (Real norm_r0, int max_iter, Real rtol, int cycle=100, Real atol=Real(0), std::ostream &out=std::cout) |
| template<Vector V> |
| bool | finished (const V &r) |
| | Test convergence; print residual every cycle iterations.
|
| bool | finished (Real r) |
| int | error_code () const |
| | The error code, printing the summary the first time it is asked for.
|
| | operator int () const |
| template<Vector V> |
| void | reset (const V &r0) |
| | basic_iteration::reset, and the summary is printed again for the next solve (it printed only for the first, issue 888).
|
| void | reset (Real norm_r0) |
| template<Vector V> |
| | basic_iteration (const V &r0, int max_iter, Real rtol, Real atol=Real(0)) |
| | Construct from initial residual vector r0.
|
| | basic_iteration (Real norm_r0, int max_iter, Real rtol, Real atol=Real(0)) |
| | Construct from precomputed norm of r0.
|
| template<Vector V> |
| void | reset (const V &r0) |
| | Prepare the object for another solve (issue 888): the iteration count back to 0, the tolerance's reference norm to ||r0||, the residual, error and finished state cleared.
|
| void | reset (Real norm_r0) |
| | reset from a precomputed norm of r0, as the second constructor takes.
|
| template<Vector V> |
| bool | finished (const V &r) |
| | Test convergence given residual vector r.
|
| bool | finished (Real r) |
| | Test convergence given scalar residual norm.
|
| template<Vector V> |
| bool | converged_now (const V &r) |
| | Convergence test only, without the iteration-limit test: for a check in the middle of an iteration (bicgstab's half step, bicgstab_ell's BiCG part), where reaching max_iter must not cut the iteration short (issue 866).
|
| bool | converged_now (Real r) |
| basic_iteration & | operator++ () |
| | Pre-increment iteration counter.
|
| basic_iteration | operator++ (int) |
| | Post-increment iteration counter.
|
| bool | first () const |
| | Returns true if this is the first iteration (i <= 1).
|
| | operator int () const |
| | Error code: 0 = converged, 1 = max_iter exceeded, 2-5 breakdown, 6 = non-finite residual.
|
| int | error_code () const |
| int | iterations () const |
| Real | resid () const |
| Real | relresid () const |
| Real | tol () const |
| Real | atol () const |
| Real | norm_r0 () const |
| void | fail (int code, const std::string &) |
| | Signal solver breakdown or other failure.
|
| bool | is_finished () const |
template<typename Real>
class mtl::itl::cyclic_iteration< Real >
Prints residual every cycle iterations (cycle >= 1); prints a summary when the solver returns it as its int result, once.