A LinOp deriving from this CRTP class stores a stopping criterion factory and allows applying with a guess. More...
#include <ginkgo/core/solver/solver_base.hpp>
Public Member Functions | |
| EnableIterativeBase & | operator= (const EnableIterativeBase &other) |
| Creates a shallow copy of the provided stopping criterion, clones it onto this executor if executors don't match. | |
| EnableIterativeBase & | operator= (EnableIterativeBase &&other) |
| Moves the provided stopping criterion, clones it onto this executor if executors don't match. | |
| EnableIterativeBase (std::shared_ptr< const stop::CriterionFactory > stop_factory) | |
| EnableIterativeBase (const EnableIterativeBase &other) | |
| Creates a shallow copy of the provided stopping criterion. | |
| EnableIterativeBase (EnableIterativeBase &&other) | |
| Moves the provided stopping criterion. | |
| void | set_stop_criterion_factory (std::shared_ptr< const stop::CriterionFactory > new_stop_factory) override |
| Sets the stopping criterion of the solver. | |
Public Member Functions inherited from gko::solver::IterativeBase | |
| std::shared_ptr< const stop::CriterionFactory > | get_stop_criterion_factory () const |
| Gets the stopping criterion factory of the solver. | |
A LinOp deriving from this CRTP class stores a stopping criterion factory and allows applying with a guess.
| DerivedType | the CRTP type that derives from this |
|
inline |
Moves the provided stopping criterion.
The moved-from object has a nullptr stopping criterion.
|
inline |
Moves the provided stopping criterion, clones it onto this executor if executors don't match.
The moved-from object has a nullptr stopping criterion.
References set_stop_criterion_factory().
|
inlineoverridevirtual |
Sets the stopping criterion of the solver.
| other | the new stopping criterion factory |
Reimplemented from gko::solver::IterativeBase.
References gko::clone(), and gko::solver::IterativeBase::set_stop_criterion_factory().
Referenced by operator=(), and operator=().