UseComposition< ValueType > Class Template Reference#
|
Reference API
|
gko::UseComposition< ValueType > Class Template Reference
#include <ginkgo/core/base/composition.hpp>
Inheritance diagram for gko::UseComposition< ValueType >:
Public Types | |
| using | value_type = ValueType |
Public Member Functions | |
| std::shared_ptr< Composition< ValueType > > | get_composition () const |
| std::shared_ptr< const LinOp > | get_operator_at (size_type index) const |
Protected Member Functions | |
| template<typename... LinOp> | |
| void | set_composition (LinOp &&... linop) |
Detailed Description
template<typename ValueType = default_precision>
class gko::UseComposition< ValueType >
class gko::UseComposition< ValueType >
The UseComposition class can be used to store the composition information in LinOp.
- Template Parameters
-
ValueType precision of input and result vectors
Member Function Documentation
◆ get_composition()
template<typename ValueType = default_precision>
|
inline |
Returns the composition operators.
- Returns
- composition
◆ get_operator_at()
template<typename ValueType = default_precision>
|
inline |
Returns the operator at index-th position of composition
- Returns
- index-th operator
- Note
- when this composition is not set, this function always returns nullptr. However, when this composition is set, it will throw exception when exceeding index.
- Exceptions
-
std::out_of_range if index is out of bound when composition is existed.
◆ set_composition()
template<typename ValueType = default_precision>
template<typename... LinOp>
|
inlineprotected |
Sets the composition with a list of operators
The documentation for this class was generated from the following file:
- ginkgo/core/base/composition.hpp
Generated by