gko::stop::Iteration#

Stops the solver after a fixed number of iterations. Use as a safety net inside Combined so a divergent solve cannot run indefinitely.

class Iteration #

Inherits from

The Iteration class is a stopping criterion which stops the iteration process after a preset number of iterations.

Note

to use this stopping criterion, it is required to update the iteration count for the ::check() method.

struct parameters_type#

Public Members

size_type max_iters = {0}#

Maximum number of iterations