MADNESS  version 0.9
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

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

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

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

Member Function Documentation

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 DirichletCondIntOp< NDIM >, and EFieldOperator.

Referenced by madness::Operator< vecfunc >::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

Referenced by madness::GMRES().


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