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

Gamma(5) hermitian linear operator. More...

#include <lgherm_w.h>

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

Public Member Functions

 lgherm (LinearOperator< T > *p)
 Initialize pointer with existing pointer. More...
 
 lgherm (Handle< LinearOperator< T > > p)
 Copy pointer (one more owner) More...
 
 ~lgherm ()
 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...
 
- 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...
 
virtual unsigned long nFlops () const
 

Private Attributes

Handle< LinearOperator< T > > A
 

Detailed Description

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

Gamma(5) hermitian linear operator.

This routine is specific to Wilson fermions!

This operator scales its input operator

Definition at line 21 of file lgherm_w.h.

Constructor & Destructor Documentation

◆ lgherm() [1/2]

template<typename T >
Chroma::lgherm< T >::lgherm ( 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 lgherm_w.h.

◆ lgherm() [2/2]

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

Copy pointer (one more owner)

Definition at line 29 of file lgherm_w.h.

◆ ~lgherm()

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

Destructor.

Definition at line 32 of file lgherm_w.h.

Member Function Documentation

◆ operator()()

template<typename T >
void Chroma::lgherm< 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 lgherm_w.h.

References Chroma::lgherm< T >::A, Chroma::chi(), Chroma::G5, Chroma::PLUS, Chroma::psi, and Chroma::tmp.

◆ subset()

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

Subset comes from underlying operator.

Implements Chroma::LinearOperator< T >.

Definition at line 35 of file lgherm_w.h.

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

Member Data Documentation

◆ A

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

Definition at line 54 of file lgherm_w.h.

Referenced by Chroma::lgherm< T >::operator()(), and Chroma::lgherm< T >::subset().


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