Ginkgo
Generated from pipelines/1556235455 branch based on develop. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
|
The EnableMultigridLevel gives the default implementation of MultigridLevel with composition and provides set_multigrid_level
function.
More...
#include <ginkgo/core/multigrid/multigrid_level.hpp>
Public Types | |
using | value_type = ValueType |
Public Types inherited from gko::UseComposition< ValueType > | |
using | value_type = ValueType |
Public Member Functions | |
std::shared_ptr< const LinOp > | get_fine_op () const override |
Returns the operator on fine level. More... | |
std::shared_ptr< const LinOp > | get_restrict_op () const override |
Returns the restrict operator. More... | |
std::shared_ptr< const LinOp > | get_coarse_op () const override |
Returns the operator on coarse level. More... | |
std::shared_ptr< const LinOp > | get_prolong_op () const override |
Returns the prolong operator. More... | |
Public Member Functions inherited from gko::UseComposition< ValueType > | |
std::shared_ptr< Composition< ValueType > > | get_composition () const |
Returns the composition operators. More... | |
std::shared_ptr< const LinOp > | get_operator_at (size_type index) const |
Returns the operator at index-th position of composition. More... | |
The EnableMultigridLevel gives the default implementation of MultigridLevel with composition and provides set_multigrid_level
function.
A class inherit from EnableMultigridLevel should use the this->get_compositions()->apply(...) as its own apply, which represents op(b) = prolong(coarse(restrict(b))).
|
inlineoverridevirtual |
Returns the operator on coarse level.
Implements gko::multigrid::MultigridLevel.
References gko::UseComposition< ValueType >::get_operator_at().
|
inlineoverridevirtual |
Returns the operator on fine level.
Implements gko::multigrid::MultigridLevel.
|
inlineoverridevirtual |
Returns the prolong operator.
Implements gko::multigrid::MultigridLevel.
References gko::UseComposition< ValueType >::get_operator_at().
|
inlineoverridevirtual |
Returns the restrict operator.
Implements gko::multigrid::MultigridLevel.
References gko::UseComposition< ValueType >::get_operator_at().