gko::stop#

Stopping criteria for iterative solvers. Every Krylov solver in gko::solver consumes a Criterion::Factory that produces a Criterion whose check() decides whether to stop on each iteration. Multiple criteria can be combined.

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).