MADNESS  0.10.1
Public Member Functions | Protected Member Functions | List of all members
madness::Operator< T > Class Template Referenceabstract

A generic operator: takes in one T and produces another T. More...

#include <gmres.h>

Public Member Functions

virtual ~Operator ()
 
TapplyOp (const T &in, T &out) const
 Public access to the operator's action, returns out for convenience. More...
 

Protected Member Functions

virtual void action (const T &in, T &out) const =0
 The action of the operator. More...
 

Detailed Description

template<typename T>
class madness::Operator< T >

A generic operator: takes in one T and produces another T.

Override the protected action() function to implement an Operator.

Constructor & Destructor Documentation

◆ ~Operator()

template<typename T >
virtual madness::Operator< T >::~Operator ( )
inlinevirtual

Member Function Documentation

◆ action()

template<typename T >
virtual void madness::Operator< T >::action ( const T in,
T out 
) const
protectedpure virtual

The action of the operator.

Parameters
[in]inThe input vector
[out]outThe action of the operator on the input vector

Implemented in ComplexVecLinearOp, ComplexVecIdentOp, RealVecLinearOp, RealVecIdentOp, ComplexFuncLinearOp, ComplexFuncIdentOp, RealFuncLinearOp, RealFuncIdentOp, and DirichletCondIntOp.

Referenced by madness::Operator< T >::applyOp().

◆ applyOp()

template<typename T >
T& madness::Operator< T >::applyOp ( const T in,
T out 
) const
inline

Public access to the operator's action, returns out for convenience.

Parameters
[in]inThe input vector
[out]outThe action of the operator on the input vector

References madness::Operator< T >::action().


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