gko::stop::Combined#

Meta-criterion: holds a list of inner Criterion::Factorys and stops the solver as soon as any of them fires. The standard pattern is Combined::build().with_criteria(iteration_factory, residual_factory) — iteration cap as a safety net, tolerance test as the primary stopping condition.

class Combined #

Inherits from

The Combined class is used to combine multiple criterions together through an OR operation. The typical use case is to stop the iteration process if any of the criteria is fulfilled, e.g. a number of iterations, the relative residual norm has reached a threshold, etc.

struct parameters_type #

Inherits from

Public Members

std::vector<std::shared_ptr<const CriterionFactory>> criteria#

Criterion factories to combine

class Factory #

Inherits from

  • public gko::EnableDefaultFactory<ConcreteFactory, ConcreteCriterion, ParametersType, PolymorphicBase>