Belos Version of the Day
Loading...
Searching...
No Matches
Belos::OperatorTraits< ScalarType, MV, OperatorT< MV > > Class Template Reference

Specialization of OperatorTraits for OperatorT. More...

#include <BelosOperatorT.hpp>

Inheritance diagram for Belos::OperatorTraits< ScalarType, MV, OperatorT< MV > >:

Static Public Member Functions

static void Apply (const OperatorT< MV > &Op, const MV &x, MV &y, ETrans trans=NOTRANS)
 Specialization of Apply() for OperatorT.
static bool HasApplyTranspose (const OperatorT< MV > &Op)
 Whether this operator implements applying the transpose.

Detailed Description

template<class ScalarType, class MV>
class Belos::OperatorTraits< ScalarType, MV, OperatorT< MV > >

Specialization of OperatorTraits for OperatorT.

This is a partial template specialization of Belos::OperatorTraits class using the Belos::OperatorT abstract interface. Any class that inherits from Belos::OperatorT will be accepted by the Belos templated solvers, due to this specialization of Belos::OperatorTraits.

Definition at line 50 of file BelosOperatorT.hpp.

Member Function Documentation

◆ Apply()

template<class ScalarType, class MV>
void Belos::OperatorTraits< ScalarType, MV, OperatorT< MV > >::Apply ( const OperatorT< MV > & Op,
const MV & x,
MV & y,
ETrans trans = NOTRANS )
inlinestatic

Specialization of Apply() for OperatorT.

Definition at line 55 of file BelosOperatorT.hpp.

◆ HasApplyTranspose()

bool Belos::OperatorTraits< ScalarType, MV, OperatorT< MV > >::HasApplyTranspose ( const OperatorT< MV > & Op)
inlinestatic

Whether this operator implements applying the transpose.

The instance of OP which is the first argument of Apply() is not required to support applying the transpose (or Hermitian transpose, if applicable). If it does support applying the transpose, this method should return true. Otherwise, it should return false.

If the operator is complex, "can apply its transpose" means that it can apply both its transpose and its Hermitian transpose.

We provide a default implementation of this method that conservatively returns false. If you want the specialization of OperatorTraits for OP to advertise that operators of type OP may implement applying the transpose, override the default implementation in the specialization.

Definition at line 119 of file BelosOperatorTraits.hpp.


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

Generated on for Belos by doxygen 1.15.0