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

Scaled Linear Operator. More...

#include <lopscl.h>

Inheritance diagram for Chroma::approx_lopscl< T, C >:
Chroma::LinearOperator< T >

Public Member Functions

 approx_lopscl (LinearOperator< T > *p, const C &scale_fact_)
 Initialize pointer with existing pointer. More...
 
 approx_lopscl (Handle< LinearOperator< T > > p, const C &scale_fact_)
 Copy pointer (one more owner) More...
 
 ~approx_lopscl ()
 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...
 
void operator() (T &chi, const T &psi, enum PlusMinus isign, Real epsilon) 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 unsigned long nFlops () const
 

Private Attributes

Handle< LinearOperator< T > > A
 
const C scale_fact
 

Detailed Description

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

Scaled Linear Operator.

This routine is specific to Wilson fermions!

This operator scales its input operator

Definition at line 60 of file lopscl.h.

Constructor & Destructor Documentation

◆ approx_lopscl() [1/2]

template<typename T , class C >
Chroma::approx_lopscl< T, C >::approx_lopscl ( LinearOperator< 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 65 of file lopscl.h.

◆ approx_lopscl() [2/2]

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

Copy pointer (one more owner)

Definition at line 68 of file lopscl.h.

◆ ~approx_lopscl()

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

Destructor.

Definition at line 71 of file lopscl.h.

Member Function Documentation

◆ operator()() [1/2]

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

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

◆ operator()() [2/2]

template<typename T , class C >
void Chroma::approx_lopscl< T, C >::operator() ( T chi,
const T psi,
enum PlusMinus  isign,
Real  epsilon 
) const
inlinevirtual

Apply the operator onto a source std::vector.

For this operator, the sign is ignored

Reimplemented from Chroma::LinearOperator< T >.

Definition at line 87 of file lopscl.h.

References Chroma::approx_lopscl< T, C >::A, Chroma::chi(), Chroma::ExternalFieldEnv::epsilon(), Chroma::isign, Chroma::psi, and Chroma::approx_lopscl< T, C >::scale_fact.

◆ subset()

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

Subset comes from underlying operator.

Implements Chroma::LinearOperator< T >.

Definition at line 74 of file lopscl.h.

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

Member Data Documentation

◆ A

template<typename T , class C >
Handle< LinearOperator<T> > Chroma::approx_lopscl< T, C >::A
private

◆ scale_fact

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

Definition at line 96 of file lopscl.h.

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


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