gko::stop#

Stopping criteria for iterative solvers. Every Krylov solver in gko::solver consumes a CriterionFactory that produces a Criterion whose check() decides whether to stop on each iteration. When a solver receives several criteria, it stops as soon as any one of them fires.

Base machinery#

  • Criterion: abstract base for all stopping criteria.

  • Combined: meta-criterion that stops when any of a list of inner criteria fires.

Built-in criteria#

  • Iteration: fixed iteration cap.

  • Time: wall-clock cap.

  • ResidualNorm: explicit and implicit residual-norm criteria for solver tolerance tests, with three baseline modes (right-hand-side, initial-residual, absolute).