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

General Wilson-Dirac dslash of arrays. More...

#include <lwldslash_array_pab_w.h>

Inheritance diagram for Chroma::PABWilsonDslashArray:
Chroma::WilsonDslashBaseArray Chroma::DslashLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > Chroma::DiffLinearOperatorArray< T, P, Q > Chroma::LinearOperatorArray< T >

Public Member Functions

 PABWilsonDslashArray ()
 Empty constructor. Must use create later. More...
 
 PABWilsonDslashArray (Handle< FermState< T, P, Q > > state, int N5_)
 Full constructor. More...
 
 PABWilsonDslashArray (Handle< FermState< T, P, Q > > state, int N5_, const AnisoParam_t &aniso_)
 Full constructor. More...
 
void create (Handle< FermState< T, P, Q > > state, int N5_)
 Creation routine. More...
 
void create (Handle< FermState< T, P, Q > > state, int N5_, const AnisoParam_t &aniso_)
 Creation routine. More...
 
void create (Handle< FermState< T, P, Q > > state, int N5_, const multi1d< Real > &coeffs_)
 Creation routine. More...
 
int size () const
 Expected length of array index. More...
 
 ~PABWilsonDslashArray ()
 Destroy / deal with refcounting. More...
 
void apply (multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign, int cb) const
 General Wilson-Dirac dslash. 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::WilsonDslashBaseArray
virtual ~WilsonDslashBaseArray ()
 No real need for cleanup here. More...
 
const Subset & subset () const
 Subset is all here. More...
 
virtual void deriv (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 Take deriv of D. More...
 
virtual void deriv (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign, int cb) 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::DslashLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~DslashLinearOperatorArray ()
 Virtual destructor to help in cleanup. More...
 
virtual void operator() (multi1d< LatticeFermion > &d, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 Apply operator on both checkerboards (entire lattice) More...
 
- Public Member Functions inherited from Chroma::DiffLinearOperatorArray< T, P, Q >
virtual ~DiffLinearOperatorArray ()
 Virtual destructor to help with cleanup;. More...
 
virtual void deriv (P &ds_u, const multi1d< T > &chi, const multi1d< 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::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...
 

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
 
int N5
 
Handle< FermBC< T, P, Q > > fbc
 

Additional Inherited Members

- Public Types inherited from Chroma::WilsonDslashBaseArray
typedef LatticeFermion T
 
typedef multi1d< LatticeColorMatrix > P
 
typedef multi1d< LatticeColorMatrix > Q
 

Detailed Description

General Wilson-Dirac dslash of arrays.

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 47 of file lwldslash_array_pab_w.h.

Constructor & Destructor Documentation

◆ PABWilsonDslashArray() [1/3]

Chroma::PABWilsonDslashArray::PABWilsonDslashArray ( )

Empty constructor. Must use create later.

Definition at line 16 of file lwldslash_array_pab_w.cc.

◆ PABWilsonDslashArray() [2/3]

Chroma::PABWilsonDslashArray::PABWilsonDslashArray ( Handle< FermState< T, P, Q > >  state,
int  N5_ 
)

Full constructor.

Definition at line 22 of file lwldslash_array_pab_w.cc.

References create(), and Chroma::state.

◆ PABWilsonDslashArray() [3/3]

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

Full constructor.

Definition at line 30 of file lwldslash_array_pab_w.cc.

References create(), and Chroma::state.

◆ ~PABWilsonDslashArray()

Chroma::PABWilsonDslashArray::~PABWilsonDslashArray ( void  )

Destroy / deal with refcounting.

Definition at line 174 of file lwldslash_array_pab_w.cc.

References Chroma::END_CODE(), packed_gauge, Chroma::PABDslashEnv::refcount, and wil.

Member Function Documentation

◆ create() [1/3]

void Chroma::PABWilsonDslashArray::create ( Handle< FermState< T, P, Q > >  state,
int  N5_ 
)

Creation routine.

Definition at line 39 of file lwldslash_array_pab_w.cc.

References Nd, and Chroma::state.

Referenced by create(), and PABWilsonDslashArray().

◆ create() [2/3]

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

Creation routine.

Creation routine with anisotropy.

Definition at line 49 of file lwldslash_array_pab_w.cc.

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

◆ create() [3/3]

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

◆ getCoeffs()

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

Get the anisotropy parameters.

Implements Chroma::WilsonDslashBaseArray.

Definition at line 115 of file lwldslash_array_pab_w.h.

References coeffs.

◆ getFermBC()

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

Return the fermion BC object for this linear operator.

Implements Chroma::WilsonDslashBaseArray.

Definition at line 111 of file lwldslash_array_pab_w.h.

References fbc.

Referenced by apply().

◆ size()

int Chroma::PABWilsonDslashArray::size ( void  ) const
inlinevirtual

Member Data Documentation

◆ coeffs

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

Nd array of coefficients of terms in the action

Definition at line 118 of file lwldslash_array_pab_w.h.

Referenced by create(), and getCoeffs().

◆ fbc

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

Definition at line 123 of file lwldslash_array_pab_w.h.

Referenced by create(), and getFermBC().

◆ N5

int Chroma::PABWilsonDslashArray::N5
private

Definition at line 122 of file lwldslash_array_pab_w.h.

Referenced by apply(), create(), and size().

◆ packed_gauge

PrimitiveSU3Matrix* Chroma::PABWilsonDslashArray::packed_gauge
private

Definition at line 119 of file lwldslash_array_pab_w.h.

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

◆ wil

WilsonArg Chroma::PABWilsonDslashArray::wil
private

Definition at line 120 of file lwldslash_array_pab_w.h.

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

◆ wil_cbsize

unsigned long Chroma::PABWilsonDslashArray::wil_cbsize
private

Definition at line 121 of file lwldslash_array_pab_w.h.

Referenced by apply(), and create().


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