The UseComposition class can be used to store the composition information in LinOp.
More...
#include <ginkgo/core/base/composition.hpp>
|
using | value_type = ValueType |
|
template<typename ValueType = default_precision>
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 |
◆ get_composition()
template<typename ValueType = default_precision>
Returns the composition operators.
- Returns
- composition
◆ get_operator_at()
template<typename ValueType = default_precision>
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. |
The documentation for this class was generated from the following file: