CHROMA
Public Member Functions | Private Attributes | List of all members

M^dag.M linear operator. More...

#include <lmdagm.h>

Inheritance diagram for Chroma::MdagMLinOp< T >:
Chroma::LinearOperator< T >

Public Member Functions

 MdagMLinOp (LinearOperator< T > *p)
 Initialize pointer with existing pointer. More...
 
 MdagMLinOp (Handle< LinearOperator< T > > p)
 Copy pointer (one more owner) More...
 
 ~MdagMLinOp ()
 Destructor. More...
 
const Subset & subset () const
 Subset comes from underlying operator. More...
 
void operator() (T &chi, const T &psi, enum PlusMinus isign) const
 Apply the operator onto a source std::vector. More...
 
unsigned long nFlops (void) const
 
- Public Member Functions inherited from Chroma::LinearOperator< T >
virtual ~LinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
virtual void operator() (T &chi, const T &psi, enum PlusMinus isign, Real epsilon) const
 Apply the operator onto a source std::vector to some precision. More...
 

Private Attributes

Handle< LinearOperator< T > > A
 

Detailed Description

template<typename T>
class Chroma::MdagMLinOp< T >

M^dag.M linear operator.

Linear operator forming M^dag.M from an operator M

Definition at line 21 of file lmdagm.h.

Constructor & Destructor Documentation

◆ MdagMLinOp() [1/2]

template<typename T >
Chroma::MdagMLinOp< T >::MdagMLinOp ( LinearOperator< T > *  p)
inline

Initialize pointer with existing pointer.

Requires that the pointer p is a return value of new

Definition at line 26 of file lmdagm.h.

◆ MdagMLinOp() [2/2]

template<typename T >
Chroma::MdagMLinOp< T >::MdagMLinOp ( Handle< LinearOperator< T > >  p)
inline

Copy pointer (one more owner)

Definition at line 29 of file lmdagm.h.

◆ ~MdagMLinOp()

template<typename T >
Chroma::MdagMLinOp< T >::~MdagMLinOp ( )
inline

Destructor.

Definition at line 32 of file lmdagm.h.

Member Function Documentation

◆ nFlops()

template<typename T >
unsigned long Chroma::MdagMLinOp< T >::nFlops ( void  ) const
inlinevirtual

Return the number of flops performed by operator() Base linop returns 0 and this can be overridden

Reimplemented from Chroma::LinearOperator< T >.

Definition at line 47 of file lmdagm.h.

References Chroma::MdagMLinOp< T >::A.

◆ operator()()

template<typename T >
void Chroma::MdagMLinOp< T >::operator() ( T chi,
const T psi,
enum PlusMinus  isign 
) const
inlinevirtual

Apply the operator onto a source std::vector.

For this operator, the sign is ignored

Implements Chroma::LinearOperator< T >.

Definition at line 39 of file lmdagm.h.

References Chroma::chi(), Chroma::MINUS, Chroma::PLUS, Chroma::psi, and Chroma::tmp.

◆ subset()

template<typename T >
const Subset& Chroma::MdagMLinOp< T >::subset ( void  ) const
inlinevirtual

Subset comes from underlying operator.

Implements Chroma::LinearOperator< T >.

Definition at line 35 of file lmdagm.h.

References Chroma::MdagMLinOp< T >::A.

Member Data Documentation

◆ A

template<typename T >
Handle< LinearOperator<T> > Chroma::MdagMLinOp< T >::A
private

Definition at line 53 of file lmdagm.h.

Referenced by Chroma::MdagMLinOp< T >::nFlops(), and Chroma::MdagMLinOp< T >::subset().


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