Ginkgo
Generated from pipelines/1330831941 branch based on master. Ginkgo version 1.8.0
A numerical linear algebra library targeting many-core architectures
|
The EnableAbsoluteComputation mixin provides the default implementations of compute_absolute_linop
and the absolute interface.
More...
#include <ginkgo/core/base/lin_op.hpp>
Public Types | |
using | absolute_type = AbsoluteLinOp |
Public Member Functions | |
std::unique_ptr< LinOp > | compute_absolute_linop () const override |
Gets the absolute LinOp. More... | |
virtual std::unique_ptr< absolute_type > | compute_absolute () const =0 |
Gets the AbsoluteLinOp. More... | |
Public Member Functions inherited from gko::AbsoluteComputable | |
virtual void | compute_absolute_inplace ()=0 |
Compute absolute inplace on each element. | |
The EnableAbsoluteComputation mixin provides the default implementations of compute_absolute_linop
and the absolute interface.
compute_absolute
gets a new AbsoluteLinOp. compute_absolute_inplace
applies absolute inplace, so it still keeps the value_type of the class.
AbsoluteLinOp | the absolute LinOp which is being returned [CRTP parameter] |
|
pure virtual |
Gets the AbsoluteLinOp.
Implemented in gko::matrix::Csr< ValueType, IndexType >, gko::matrix::Dense< ValueType >, gko::matrix::Dense< value_type >, gko::matrix::Hybrid< ValueType, IndexType >, gko::matrix::Fbcsr< ValueType, IndexType >, gko::experimental::distributed::Vector< ValueType >, gko::matrix::Ell< ValueType, IndexType >, gko::matrix::Coo< ValueType, IndexType >, gko::matrix::Sellp< ValueType, IndexType >, and gko::matrix::Diagonal< ValueType >.
Referenced by gko::EnableAbsoluteComputation< remove_complex< Ell< ValueType, IndexType > > >::compute_absolute_linop().
|
inlineoverridevirtual |
Gets the absolute LinOp.
Implements gko::AbsoluteComputable.