EnableIterativeBase< DerivedType > Class Template Reference#
|
Reference API
|
#include <ginkgo/core/solver/solver_base.hpp>
Public Member Functions | |
| EnableIterativeBase & | operator= (const EnableIterativeBase &other) |
| EnableIterativeBase & | operator= (EnableIterativeBase &&other) |
| EnableIterativeBase (std::shared_ptr< const stop::CriterionFactory > stop_factory) | |
| EnableIterativeBase (const EnableIterativeBase &other) | |
| EnableIterativeBase (EnableIterativeBase &&other) | |
| void | set_stop_criterion_factory (std::shared_ptr< const stop::CriterionFactory > new_stop_factory) override |
Public Member Functions inherited from gko::solver::IterativeBase | |
| std::shared_ptr< const stop::CriterionFactory > | get_stop_criterion_factory () const |
Detailed Description
class gko::solver::EnableIterativeBase< DerivedType >
A LinOp deriving from this CRTP class stores a stopping criterion factory and allows applying with a guess.
- Template Parameters
-
DerivedType the CRTP type that derives from this
Constructor & Destructor Documentation
◆ EnableIterativeBase() [1/2]
|
inline |
Creates a shallow copy of the provided stopping criterion.
◆ EnableIterativeBase() [2/2]
|
inline |
Moves the provided stopping criterion. The moved-from object has a nullptr stopping criterion.
Member Function Documentation
◆ operator=() [1/2]
|
inline |
Creates a shallow copy of the provided stopping criterion, clones it onto this executor if executors don't match.
References gko::solver::IterativeBase::get_stop_criterion_factory(), and gko::solver::EnableIterativeBase< DerivedType >::set_stop_criterion_factory().
◆ operator=() [2/2]
|
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 gko::solver::EnableIterativeBase< DerivedType >::set_stop_criterion_factory().
◆ set_stop_criterion_factory()
|
inlineoverridevirtual |
Sets the stopping criterion of the solver.
- Parameters
-
other the new stopping criterion factory
Reimplemented from gko::solver::IterativeBase.
References gko::clone(), and gko::solver::IterativeBase::set_stop_criterion_factory().
Referenced by gko::solver::EnableIterativeBase< DerivedType >::operator=(), and gko::solver::EnableIterativeBase< DerivedType >::operator=().
The documentation for this class was generated from the following file:
- ginkgo/core/solver/solver_base.hpp
Generated by
Public Member Functions inherited from