CHROMA
Public Member Functions | Protected Member Functions | List of all members
Chroma::WilsonDslashBase< T, P, Q > Class Template Referenceabstract

General Wilson-Dirac dslash. More...

#include <lwldslash_base_w.h>

Inheritance diagram for Chroma::WilsonDslashBase< T, P, Q >:
Chroma::DslashLinearOperator< T, P, Q > Chroma::DiffLinearOperator< T, P, Q > Chroma::LinearOperator< T > Chroma::LLVMWilsonDslashT< T, P, Q > Chroma::QDPWilsonDslashOptT< T, P, Q > Chroma::QDPWilsonDslashT< T, P, Q >

Public Member Functions

virtual ~WilsonDslashBase ()
 No real need for cleanup here. More...
 
const Subset & subset () const
 Subset is all here. More...
 
virtual void deriv (P &ds_u, const T &chi, const T &psi, enum PlusMinus isign) const
 Take deriv of D. More...
 
virtual void deriv (P &ds_u, const T &chi, const T &psi, enum PlusMinus isign, int cb) const
 Take deriv of D. More...
 
unsigned long nFlops () const
 Return flops performed by the operator() More...
 
- Public Member Functions inherited from Chroma::DslashLinearOperator< T, P, Q >
virtual ~DslashLinearOperator ()
 Virtual destructor to help in cleanup. More...
 
virtual const FermBC< T, P, Q > & getFermBC () const =0
 Return the fermion BC object for this linear operator. More...
 
virtual void operator() (T &d, const T &psi, enum PlusMinus isign) const
 Apply operator on both checkerboards (entire lattice) More...
 
virtual void apply (T &chi, const T &psi, enum PlusMinus isign, int cb) const =0
 Apply checkerboarded linear operator. More...
 
virtual void derivMultipole (P &ds_u, const multi1d< T > &chi, const multi1d< T > &psi, enum PlusMinus isign) const
 Return the force for multiple poles. More...
 
virtual void derivMultipole (P &ds_u, const multi1d< T > &chi, const multi1d< T > &psi, enum PlusMinus isign, int cb) const
 
- Public Member Functions inherited from Chroma::DiffLinearOperator< T, P, Q >
virtual ~DiffLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
virtual void deriv (P &ds_u, const T &chi, const T &psi, enum PlusMinus isign, const Real &epsilon) const
 Apply the derivative of the operator onto a source std::vector to some precision. 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...
 

Protected Member Functions

virtual const multi1d< Real > & getCoeffs () const =0
 Get the anisotropy parameters. More...
 

Detailed Description

template<typename T, typename P, typename Q>
class Chroma::WilsonDslashBase< T, P, Q >

General Wilson-Dirac dslash.

DSLASH

This routine is specific to Wilson fermions!

Description:

This routine applies the operator D' to Psi, putting the result in Chi.

      Nd-1
      ---
      \

chi(x) := > U (x) (1 - isign gamma ) psi(x+mu)

/ mu mu

mu=0

  Nd-1
  ---
  \    +
 +    >  U  (x-mu) (1 + isign gamma  ) psi(x-mu)
  /    mu                    mu
  ---
  mu=0

Definition at line 43 of file lwldslash_base_w.h.

Constructor & Destructor Documentation

◆ ~WilsonDslashBase()

template<typename T , typename P , typename Q >
virtual Chroma::WilsonDslashBase< T, P, Q >::~WilsonDslashBase ( )
inlinevirtual

No real need for cleanup here.

Definition at line 49 of file lwldslash_base_w.h.

Member Function Documentation

◆ deriv() [1/2]

template<typename T , typename P , typename Q >
void Chroma::WilsonDslashBase< T, P, Q >::deriv ( P ds_u,
const T chi,
const T psi,
enum PlusMinus  isign 
) const
virtual

Take deriv of D.

Parameters
chileft std::vector (Read)
psiright std::vector (Read)
isignD'^dag or D' ( MINUS | PLUS ) resp. (Read)
Returns
Computes $\chi^\dag * \dot(D} * \psi$

Reimplemented from Chroma::DslashLinearOperator< T, P, Q >.

Definition at line 113 of file lwldslash_base_w.h.

References Chroma::chi(), deriv(), Chroma::END_CODE(), Chroma::isign, Nd, Chroma::psi, and Chroma::START_CODE().

Referenced by Chroma::EvenOddPrecParWilsonLinOp::derivEvenOddLinOp(), Chroma::EvenOddPrecSLICLinOp::derivEvenOddLinOp(), Chroma::EvenOddPrecParWilsonLinOp::derivOddEvenLinOp(), and Chroma::EvenOddPrecSLICLinOp::derivOddEvenLinOp().

◆ deriv() [2/2]

template<typename T , typename P , typename Q >
void Chroma::WilsonDslashBase< T, P, Q >::deriv ( P ds_u,
const T chi,
const T psi,
enum PlusMinus  isign,
int  cb 
) const
virtual

Take deriv of D.

Parameters
chileft std::vector on cb (Read)
psiright std::vector on 1-cb (Read)
isignD'^dag or D' ( MINUS | PLUS ) resp. (Read)
cbCheckerboard of chi std::vector (Read)
Returns
Computes $\chi^\dag * \dot(D} * \psi$
Computes $\chi^\dag * \dot(D} * \psi$

Reimplemented from Chroma::DslashLinearOperator< T, P, Q >.

Definition at line 134 of file lwldslash_base_w.h.

References Chroma::cb, Chroma::chi(), Chroma::END_CODE(), FORWARD, Chroma::isign, Chroma::MINUS, mu, Nd, Chroma::PLUS, Chroma::psi, Chroma::QDP_error_exit(), Chroma::START_CODE(), and Chroma::zero.

◆ getCoeffs()

template<typename T , typename P , typename Q >
virtual const multi1d<Real>& Chroma::WilsonDslashBase< T, P, Q >::getCoeffs ( ) const
protectedpure virtual

◆ nFlops()

template<typename T , typename P , typename Q >
unsigned long Chroma::WilsonDslashBase< T, P, Q >::nFlops ( void  ) const
virtual

◆ subset()

template<typename T , typename P , typename Q >
const Subset& Chroma::WilsonDslashBase< T, P, Q >::subset ( void  ) const
inlinevirtual

Subset is all here.

Implements Chroma::LinearOperator< T >.

Definition at line 52 of file lwldslash_base_w.h.


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