MADNESS 0.10.1
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 ()
T & applyOp (const T &in, T &out) const
 Public access to the operator's action, returns out for convenience.

Protected Member Functions

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

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 ComplexFuncIdentOp, ComplexFuncLinearOp, ComplexVecIdentOp, ComplexVecLinearOp, DirichletCondIntOp, RealFuncIdentOp, RealFuncLinearOp, RealVecIdentOp, and RealVecLinearOp.

Referenced by 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 action().


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