![]() |
Ginkgo Generated from branch based on main. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
|
The AbsoluteComputable is an interface that allows to get the component wise absolute of a LinOp. More...
#include <ginkgo/core/base/lin_op.hpp>
Public Member Functions | |
virtual std::unique_ptr< LinOp > | compute_absolute_linop () const =0 |
Gets the absolute LinOp. | |
virtual void | compute_absolute_inplace ()=0 |
Compute absolute inplace on each element. | |
The AbsoluteComputable is an interface that allows to get the component wise absolute of a LinOp.
Use EnableAbsoluteComputation<AbsoluteLinOp> to implement this interface.
|
pure virtual |
Compute absolute inplace on each element.
Implemented in gko::experimental::distributed::Vector< ValueType >, gko::matrix::Coo< ValueType, IndexType >, gko::matrix::Csr< ValueType, IndexType >, gko::matrix::Dense< ValueType >, gko::matrix::Dense< value_type >, gko::matrix::Diagonal< ValueType >, gko::matrix::Ell< ValueType, IndexType >, gko::matrix::Fbcsr< ValueType, IndexType >, gko::matrix::Hybrid< ValueType, IndexType >, and gko::matrix::Sellp< ValueType, IndexType >.
|
pure virtual |
Gets the absolute LinOp.
Implemented in gko::EnableAbsoluteComputation< AbsoluteLinOp >, gko::EnableAbsoluteComputation< remove_complex< Coo< ValueType, IndexType > > >, gko::EnableAbsoluteComputation< remove_complex< Csr< ValueType, IndexType > > >, gko::EnableAbsoluteComputation< remove_complex< Dense< value_type > > >, gko::EnableAbsoluteComputation< remove_complex< Dense< ValueType > > >, gko::EnableAbsoluteComputation< remove_complex< Diagonal< default_precision > > >, gko::EnableAbsoluteComputation< remove_complex< Ell< default_precision, int32 > > >, gko::EnableAbsoluteComputation< remove_complex< Fbcsr< ValueType, IndexType > > >, gko::EnableAbsoluteComputation< remove_complex< Hybrid< default_precision, int32 > > >, gko::EnableAbsoluteComputation< remove_complex< Sellp< default_precision, int32 > > >, and gko::EnableAbsoluteComputation< remove_complex< Vector< ValueType > > >.