Ginkgo  Generated from pipelines/1330831941 branch based on master. Ginkgo version 1.8.0
A numerical linear algebra library targeting many-core architectures
Public Member Functions | List of all members
gko::solver::EnableIterativeBase< DerivedType > Class Template Reference

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>

Inheritance diagram for gko::solver::EnableIterativeBase< DerivedType >:
[legend]
Collaboration diagram for gko::solver::EnableIterativeBase< DerivedType >:
[legend]

Public Member Functions

EnableIterativeBaseoperator= (const EnableIterativeBase &other)
 Creates a shallow copy of the provided stopping criterion, clones it onto this executor if executors don't match.
 
EnableIterativeBaseoperator= (EnableIterativeBase &&other)
 Moves the provided stopping criterion, clones it onto this executor if executors don't match. More...
 
 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. More...
 
void set_stop_criterion_factory (std::shared_ptr< const stop::CriterionFactory > new_stop_factory) override
 Sets the stopping criterion of the solver. More...
 
- Public Member Functions inherited from gko::solver::IterativeBase
std::shared_ptr< const stop::CriterionFactoryget_stop_criterion_factory () const
 Gets the stopping criterion factory of the solver. More...
 

Detailed Description

template<typename DerivedType>
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
DerivedTypethe CRTP type that derives from this

Constructor & Destructor Documentation

◆ EnableIterativeBase()

template<typename DerivedType>
gko::solver::EnableIterativeBase< DerivedType >::EnableIterativeBase ( EnableIterativeBase< DerivedType > &&  other)
inline

Moves the provided stopping criterion.

The moved-from object has a nullptr stopping criterion.

Member Function Documentation

◆ operator=()

template<typename DerivedType>
EnableIterativeBase& gko::solver::EnableIterativeBase< DerivedType >::operator= ( EnableIterativeBase< DerivedType > &&  other)
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.

◆ set_stop_criterion_factory()

template<typename DerivedType>
void gko::solver::EnableIterativeBase< DerivedType >::set_stop_criterion_factory ( std::shared_ptr< const stop::CriterionFactory new_stop_factory)
inlineoverridevirtual

Sets the stopping criterion of the solver.

Parameters
otherthe new stopping criterion factory

Reimplemented from gko::solver::IterativeBase.

Referenced by gko::solver::EnableIterativeBase< Bicg< ValueType > >::operator=().


The documentation for this class was generated from the following file: