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

General Wilson-Dirac dslash. More...

#include <lwldslash_w_pab.h>

Inheritance diagram for Chroma::PABWilsonDslash:
Chroma::WilsonDslashBase< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > Chroma::DslashLinearOperator< T, P, Q > Chroma::DiffLinearOperator< T, P, Q > Chroma::LinearOperator< T >

Public Types

typedef LatticeFermion T
 
typedef multi1d< LatticeColorMatrix > Q
 
typedef multi1d< LatticeColorMatrix > P
 

Public Member Functions

 PABWilsonDslash ()
 Empty constructor. Must use create later. More...
 
 PABWilsonDslash (Handle< FermState< T, P, Q > > state)
 Full constructor. More...
 
 PABWilsonDslash (Handle< FermState< T, P, Q > > state, const AnisoParam_t &aniso_)
 Full constructor with anisotropy. More...
 
 PABWilsonDslash (Handle< FermState< T, P, Q > > state, const multi1d< Real > &coeffs_)
 Full constructor with general coefficients. More...
 
void create (Handle< FermState< T, P, Q > > state)
 Creation routine. More...
 
void create (Handle< FermState< T, P, Q > > state, const AnisoParam_t &aniso_)
 Creation routine with anisotropy. More...
 
void create (Handle< FermState< T, P, Q > > state, const multi1d< Real > &coeffs_)
 Full constructor with general coefficients. More...
 
 ~PABWilsonDslash ()
 No real need for cleanup here. More...
 
void apply (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign, int cb) const
 Apply Wilson-Dirac dslash. More...
 
const FermBC< T, P, Q > & getFermBC () const
 Return the fermion BC object for this linear operator. More...
 
- Public Member Functions inherited from Chroma::WilsonDslashBase< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~WilsonDslashBase ()
 No real need for cleanup here. More...
 
const Subset & subset () const
 Subset is all here. More...
 
virtual void deriv (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Take deriv of D. More...
 
virtual void deriv (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &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 void operator() (T &d, const T &psi, enum PlusMinus isign) const
 Apply operator on both checkerboards (entire lattice) 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

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

Private Attributes

multi1d< Real > coeffs
 
PrimitiveSU3Matrixpacked_gauge
 
WilsonArg wil
 
unsigned long wil_cbsize
 
Handle< FermBC< T, P, Q > > fbc
 

Detailed Description

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 56 of file lwldslash_w_pab.h.

Member Typedef Documentation

◆ P

typedef multi1d<LatticeColorMatrix> Chroma::PABWilsonDslash::P

Definition at line 62 of file lwldslash_w_pab.h.

◆ Q

typedef multi1d<LatticeColorMatrix> Chroma::PABWilsonDslash::Q

Definition at line 61 of file lwldslash_w_pab.h.

◆ T

typedef LatticeFermion Chroma::PABWilsonDslash::T

Definition at line 60 of file lwldslash_w_pab.h.

Constructor & Destructor Documentation

◆ PABWilsonDslash() [1/4]

Chroma::PABWilsonDslash::PABWilsonDslash ( )

Empty constructor. Must use create later.

Empty constructor.

Definition at line 18 of file lwldslash_w_pab.cc.

◆ PABWilsonDslash() [2/4]

Chroma::PABWilsonDslash::PABWilsonDslash ( Handle< FermState< T, P, Q > >  state)

Full constructor.

Definition at line 21 of file lwldslash_w_pab.cc.

References create(), and Chroma::state.

◆ PABWilsonDslash() [3/4]

Chroma::PABWilsonDslash::PABWilsonDslash ( Handle< FermState< T, P, Q > >  state,
const AnisoParam_t aniso_ 
)

Full constructor with anisotropy.

Definition at line 27 of file lwldslash_w_pab.cc.

References create(), and Chroma::state.

◆ PABWilsonDslash() [4/4]

Chroma::PABWilsonDslash::PABWilsonDslash ( Handle< FermState< T, P, Q > >  state,
const multi1d< Real > &  coeffs_ 
)

Full constructor with general coefficients.

Definition at line 34 of file lwldslash_w_pab.cc.

References create(), and Chroma::state.

◆ ~PABWilsonDslash()

Chroma::PABWilsonDslash::~PABWilsonDslash ( )

No real need for cleanup here.

Definition at line 167 of file lwldslash_w_pab.cc.

References packed_gauge, Chroma::PABDslashEnv::refcount, and wil.

Member Function Documentation

◆ create() [1/3]

void Chroma::PABWilsonDslash::create ( Handle< FermState< T, P, Q > >  state)

Creation routine.

Definition at line 42 of file lwldslash_w_pab.cc.

References Nd, and Chroma::state.

Referenced by create(), and PABWilsonDslash().

◆ create() [2/3]

void Chroma::PABWilsonDslash::create ( Handle< FermState< T, P, Q > >  state,
const AnisoParam_t aniso_ 
)

Creation routine with anisotropy.

Definition at line 50 of file lwldslash_w_pab.cc.

References create(), Chroma::END_CODE(), Chroma::makeFermCoeffs(), Chroma::START_CODE(), and Chroma::state.

◆ create() [3/3]

void Chroma::PABWilsonDslash::create ( Handle< FermState< T, P, Q > >  state,
const multi1d< Real > &  coeffs_ 
)

◆ getCoeffs()

const multi1d<Real>& Chroma::PABWilsonDslash::getCoeffs ( ) const
inlineprotectedvirtual

Get the anisotropy parameters.

Implements Chroma::WilsonDslashBase< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 110 of file lwldslash_w_pab.h.

References coeffs.

◆ getFermBC()

const FermBC<T,P,Q>& Chroma::PABWilsonDslash::getFermBC ( ) const
inlinevirtual

Return the fermion BC object for this linear operator.

Implements Chroma::DslashLinearOperator< T, P, Q >.

Definition at line 106 of file lwldslash_w_pab.h.

References fbc.

Referenced by apply().

Member Data Documentation

◆ coeffs

multi1d<Real> Chroma::PABWilsonDslash::coeffs
private

Nd array of coefficients of terms in the action

Definition at line 113 of file lwldslash_w_pab.h.

Referenced by create(), and getCoeffs().

◆ fbc

Handle< FermBC<T,P,Q> > Chroma::PABWilsonDslash::fbc
private

Definition at line 117 of file lwldslash_w_pab.h.

Referenced by create(), and getFermBC().

◆ packed_gauge

PrimitiveSU3Matrix* Chroma::PABWilsonDslash::packed_gauge
private

Definition at line 114 of file lwldslash_w_pab.h.

Referenced by apply(), create(), and ~PABWilsonDslash().

◆ wil

WilsonArg Chroma::PABWilsonDslash::wil
private

Definition at line 115 of file lwldslash_w_pab.h.

Referenced by create(), and ~PABWilsonDslash().

◆ wil_cbsize

unsigned long Chroma::PABWilsonDslash::wil_cbsize
private

Definition at line 116 of file lwldslash_w_pab.h.

Referenced by apply(), and create().


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