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

Partial specialization of scaled M operator over arrays. More...

#include <lgherm_w.h>

Inheritance diagram for Chroma::lghermArray< T >:
Chroma::LinearOperatorArray< T >

Public Member Functions

 lghermArray (LinearOperatorArray< T > *p)
 Initialize pointer with existing pointer. More...
 
 lghermArray (Handle< LinearOperatorArray< T > > p)
 Copy pointer (one more owner) More...
 
 ~lghermArray ()
 Destructor. More...
 
int size () const
 Length of array index. More...
 
const Subset & subset () const
 Subset comes from underlying operator. More...
 
void operator() (multi1d< T > &chi, const multi1d< T > &psi, enum PlusMinus isign) const
 Apply the operator onto a source std::vector. More...
 
- Public Member Functions inherited from Chroma::LinearOperatorArray< T >
virtual ~LinearOperatorArray ()
 Virtual destructor to help with cleanup;. More...
 
virtual void operator() (multi1d< T > &chi, const multi1d< 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< LinearOperatorArray< T > > A
 

Detailed Description

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

Partial specialization of scaled M operator over arrays.

This routine is specific to Wilson fermions!

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

Definition at line 68 of file lgherm_w.h.

Constructor & Destructor Documentation

◆ lghermArray() [1/2]

template<typename T >
Chroma::lghermArray< T >::lghermArray ( LinearOperatorArray< T > *  p)
inline

Initialize pointer with existing pointer.

Requires that the pointer p is a return value of new

Definition at line 73 of file lgherm_w.h.

◆ lghermArray() [2/2]

template<typename T >
Chroma::lghermArray< T >::lghermArray ( Handle< LinearOperatorArray< T > >  p)
inline

Copy pointer (one more owner)

Definition at line 76 of file lgherm_w.h.

◆ ~lghermArray()

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

Destructor.

Definition at line 79 of file lgherm_w.h.

Member Function Documentation

◆ operator()()

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

Apply the operator onto a source std::vector.

For this operator, the sign is ignored

Implements Chroma::LinearOperatorArray< T >.

Definition at line 89 of file lgherm_w.h.

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

◆ size()

template<typename T >
int Chroma::lghermArray< T >::size ( void  ) const
inlinevirtual

Length of array index.

Implements Chroma::LinearOperatorArray< T >.

Definition at line 82 of file lgherm_w.h.

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

Referenced by Chroma::lghermArray< T >::operator()().

◆ subset()

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

Subset comes from underlying operator.

Implements Chroma::LinearOperatorArray< T >.

Definition at line 85 of file lgherm_w.h.

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

Member Data Documentation

◆ A

template<typename T >
Handle< LinearOperatorArray<T> > Chroma::lghermArray< T >::A
private

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