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

Scaled Linear Operator. More...

#include <lopscl.h>

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

Public Member Functions

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

Detailed Description

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

Scaled Linear Operator.

This routine is specific to Wilson fermions!

This operator scales its input operator

Definition at line 21 of file lopscl.h.

Constructor & Destructor Documentation

◆ lopscl() [1/2]

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

◆ lopscl() [2/2]

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

Copy pointer (one more owner)

Definition at line 29 of file lopscl.h.

◆ ~lopscl()

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

Destructor.

Definition at line 32 of file lopscl.h.

Member Function Documentation

◆ operator()()

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

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

◆ subset()

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

Subset comes from underlying operator.

Implements Chroma::LinearOperator< T >.

Definition at line 35 of file lopscl.h.

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

Member Data Documentation

◆ A

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

Definition at line 47 of file lopscl.h.

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

◆ scale_fact

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

Definition at line 48 of file lopscl.h.

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


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