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

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

#include <lopscl.h>

Inheritance diagram for Chroma::lopsclArray< T, C >:
Chroma::LinearOperatorArray< T >

Public Member Functions

 lopsclArray (LinearOperatorArray< T > *p, const C &scale_fact_)
 Initialize pointer with existing pointer. More...
 
 lopsclArray (Handle< LinearOperatorArray< T > > p, const C &scale_fact_)
 Copy pointer (one more owner) More...
 
 ~lopsclArray ()
 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
 
const C scale_fact
 

Detailed Description

template<typename T, class C>
class Chroma::lopsclArray< T, C >

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 110 of file lopscl.h.

Constructor & Destructor Documentation

◆ lopsclArray() [1/2]

template<typename T , class C >
Chroma::lopsclArray< T, C >::lopsclArray ( LinearOperatorArray< T > *  p,
const C &  scale_fact_ 
)
inline

Initialize pointer with existing pointer.

Requires that the pointer p is a return value of new

Definition at line 115 of file lopscl.h.

◆ lopsclArray() [2/2]

template<typename T , class C >
Chroma::lopsclArray< T, C >::lopsclArray ( Handle< LinearOperatorArray< T > >  p,
const C &  scale_fact_ 
)
inline

Copy pointer (one more owner)

Definition at line 118 of file lopscl.h.

◆ ~lopsclArray()

template<typename T , class C >
Chroma::lopsclArray< T, C >::~lopsclArray ( )
inline

Destructor.

Definition at line 121 of file lopscl.h.

Member Function Documentation

◆ operator()()

template<typename T , class C >
void Chroma::lopsclArray< T, C >::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 131 of file lopscl.h.

References Chroma::lopsclArray< T, C >::A, Chroma::chi(), Chroma::i, Chroma::isign, Chroma::psi, Chroma::lopsclArray< T, C >::scale_fact, and Chroma::lopsclArray< T, C >::size().

◆ size()

template<typename T , class C >
int Chroma::lopsclArray< T, C >::size ( void  ) const
inlinevirtual

Length of array index.

Implements Chroma::LinearOperatorArray< T >.

Definition at line 124 of file lopscl.h.

References Chroma::lopsclArray< T, C >::A.

Referenced by Chroma::lopsclArray< T, C >::operator()().

◆ subset()

template<typename T , class C >
const Subset& Chroma::lopsclArray< T, C >::subset ( void  ) const
inlinevirtual

Subset comes from underlying operator.

Implements Chroma::LinearOperatorArray< T >.

Definition at line 127 of file lopscl.h.

References Chroma::lopsclArray< T, C >::A.

Member Data Documentation

◆ A

template<typename T , class C >
Handle< LinearOperatorArray<T> > Chroma::lopsclArray< T, C >::A
private

◆ scale_fact

template<typename T , class C >
const C Chroma::lopsclArray< T, C >::scale_fact
private

Definition at line 144 of file lopscl.h.

Referenced by Chroma::lopsclArray< T, C >::operator()().


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