EnableAbsoluteComputation< AbsoluteLinOp > Class Template Reference

EnableAbsoluteComputation&lt; AbsoluteLinOp &gt; Class Template Reference#

Reference API: gko::EnableAbsoluteComputation< AbsoluteLinOp > Class Template Reference
Reference API
gko::EnableAbsoluteComputation< AbsoluteLinOp > Class Template Referenceabstract

#include <ginkgo/core/base/lin_op.hpp>

Inheritance diagram for gko::EnableAbsoluteComputation< AbsoluteLinOp >:
[legend]

Public Types

using absolute_type = AbsoluteLinOp
 

Public Member Functions

std::unique_ptr< LinOpcompute_absolute_linop () const override
 
virtual std::unique_ptr< absolute_type > compute_absolute () const =0
 
- Public Member Functions inherited from gko::AbsoluteComputable
virtual void compute_absolute_inplace ()=0
 

Detailed Description

template<typename AbsoluteLinOp>
class gko::EnableAbsoluteComputation< AbsoluteLinOp >

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.

Template Parameters
AbsoluteLinOpthe absolute LinOp which is being returned [CRTP parameter]

Member Function Documentation

◆ compute_absolute()

◆ compute_absolute_linop()

template<typename AbsoluteLinOp >
std::unique_ptr< LinOp > gko::EnableAbsoluteComputation< AbsoluteLinOp >::compute_absolute_linop ( ) const
inlineoverridevirtual

Gets the absolute LinOp

Returns
a pointer to the new absolute LinOp

Implements gko::AbsoluteComputable.


The documentation for this class was generated from the following file: