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

Even-odd preconditioned Wilson fermion linear operator with parity breaking term. More...

#include <eoprec_parwilson_linop_w.h>

Inheritance diagram for Chroma::EvenOddPrecParWilsonLinOp:
Chroma::EvenOddPrecConstDetLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > Chroma::EvenOddPrecLinearOperator< T, P, Q > Chroma::DiffLinearOperator< T, P, Q > Chroma::LinearOperator< T >

Public Types

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

Public Member Functions

 EvenOddPrecParWilsonLinOp ()
 Partial constructor. More...
 
 EvenOddPrecParWilsonLinOp (Handle< FermState< T, P, Q > > fs, const Real &Mass_, const Real &H_)
 Full constructor. More...
 
 ~EvenOddPrecParWilsonLinOp ()
 Destructor is automatic. More...
 
const FermBC< T, P, Q > & getFermBC () const
 Return the fermion BC object for this linear operator. More...
 
void create (Handle< FermState< T, P, Q > > fs, const Real &Mass_, const Real &H_)
 Creation routine. More...
 
void evenEvenLinOp (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the the even-even block onto a source std::vector. More...
 
void evenEvenInvLinOp (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the inverse of the even-even block onto a source std::vector. More...
 
void evenOddLinOp (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the the even-odd block onto a source std::vector. More...
 
void oddEvenLinOp (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the the odd-even block onto a source std::vector. More...
 
void oddOddLinOp (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the the odd-odd block onto a source std::vector. More...
 
void operator() (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Override inherited one with a few more funkies. More...
 
void derivEvenEvenLinOp (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the even-even block onto a source std::vector. More...
 
void derivEvenOddLinOp (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the the even-odd block onto a source std::vector. More...
 
void derivOddEvenLinOp (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the the odd-even block onto a source std::vector. More...
 
void derivOddOddLinOp (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the the odd-odd block onto a source std::vector. More...
 
unsigned long nFlops () const
 Return flops performed by the operator() More...
 
- Public Member Functions inherited from Chroma::EvenOddPrecConstDetLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~EvenOddPrecConstDetLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
virtual void deriv (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the derivative of the operator onto a source std::vector. More...
 
virtual void derivEvenEvenLinOpMP (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 
virtual void derivEvenOddLinOpMP (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 
virtual void derivOddEvenLinOpMP (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 
virtual void derivOddOddLinOpMP (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 
virtual void derivMultipole (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 Apply the derivative of the operator onto a source std::vector. More...
 
- Public Member Functions inherited from Chroma::EvenOddPrecLinearOperator< T, P, Q >
virtual ~EvenOddPrecLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
const Subset & subset () const
 Only defined on the odd lattice. More...
 
virtual void unprecLinOp (T &chi, const T &psi, enum PlusMinus isign) const
 Apply the UNPRECONDITIONED operator onto a source std::vector. More...
 
virtual void derivUnprecLinOp (P &ds_u, const T &chi, const T &psi, enum PlusMinus isign) const
 
virtual unsigned long evenEvenNFlops () const
 Return flops performed by the evenEvenLinOp. More...
 
virtual unsigned long evenOddNFlops () const
 Return flops performed by the evenOddLinOp. More...
 
virtual unsigned long oddEvenNFlops () const
 Return flops performed by the oddEvenLinOp. More...
 
virtual unsigned long oddOddNFlops () const
 Return flops performed by the oddOddLinOp. More...
 
virtual unsigned long evenEvenInvNFlops () const
 Return flops performed by the evenEvenInvLinOp. More...
 
- 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...
 

Private Attributes

Real fact
 
Real invfact1
 
Real invfact2
 
Real Mass
 
Real H
 
WilsonDslash D
 

Detailed Description

Even-odd preconditioned Wilson fermion linear operator with parity breaking term.

This routine is specific to Wilson fermions!

The kernel for Wilson fermions with a parity breaking term is

 M  =  (d+M) + i*H*gamma_5  - (1/2) D'

Definition at line 26 of file eoprec_parwilson_linop_w.h.

Member Typedef Documentation

◆ P

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

Definition at line 32 of file eoprec_parwilson_linop_w.h.

◆ Q

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

Definition at line 33 of file eoprec_parwilson_linop_w.h.

◆ T

typedef LatticeFermion Chroma::EvenOddPrecParWilsonLinOp::T

Definition at line 31 of file eoprec_parwilson_linop_w.h.

Constructor & Destructor Documentation

◆ EvenOddPrecParWilsonLinOp() [1/2]

Chroma::EvenOddPrecParWilsonLinOp::EvenOddPrecParWilsonLinOp ( )
inline

Partial constructor.

Definition at line 36 of file eoprec_parwilson_linop_w.h.

◆ EvenOddPrecParWilsonLinOp() [2/2]

Chroma::EvenOddPrecParWilsonLinOp::EvenOddPrecParWilsonLinOp ( Handle< FermState< T, P, Q > >  fs,
const Real &  Mass_,
const Real &  H_ 
)
inline

Full constructor.

Definition at line 39 of file eoprec_parwilson_linop_w.h.

References create().

◆ ~EvenOddPrecParWilsonLinOp()

Chroma::EvenOddPrecParWilsonLinOp::~EvenOddPrecParWilsonLinOp ( )
inline

Destructor is automatic.

Definition at line 44 of file eoprec_parwilson_linop_w.h.

Member Function Documentation

◆ create()

void Chroma::EvenOddPrecParWilsonLinOp::create ( Handle< FermState< T, P, Q > >  fs,
const Real &  Mass_,
const Real &  H_ 
)

Creation routine.

Parameters
u_gauge field (Read)
Mass_fermion mass (Read)
H_parity breaking term (Read)
fsgauge field (Read)
Mass_fermion mass (Read)
mu_sigma_first parity mass term (Read)

Definition at line 15 of file eoprec_parwilson_linop_w.cc.

References Chroma::QDPWilsonDslashT< T, P, Q >::create(), D, fact, H, invfact1, invfact2, Mass, Nd, and Chroma::tmp.

Referenced by EvenOddPrecParWilsonLinOp().

◆ derivEvenEvenLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::derivEvenEvenLinOp ( multi1d< LatticeColorMatrix > &  ds_u,
const LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
inlinevirtual

Apply the even-even block onto a source std::vector.

Reimplemented from Chroma::EvenOddPrecConstDetLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 79 of file eoprec_parwilson_linop_w.h.

References Nd, and Chroma::zero.

◆ derivEvenOddLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::derivEvenOddLinOp ( multi1d< LatticeColorMatrix > &  ds_u,
const LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

◆ derivOddEvenLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::derivOddEvenLinOp ( multi1d< LatticeColorMatrix > &  ds_u,
const LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

◆ derivOddOddLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::derivOddOddLinOp ( multi1d< LatticeColorMatrix > &  ds_u,
const LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
inlinevirtual

Apply the the odd-odd block onto a source std::vector.

Reimplemented from Chroma::EvenOddPrecConstDetLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 99 of file eoprec_parwilson_linop_w.h.

References Nd, and Chroma::zero.

◆ evenEvenInvLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::evenEvenInvLinOp ( LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

Apply the inverse of the even-even block onto a source std::vector.

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

Definition at line 58 of file eoprec_parwilson_linop_w.cc.

References Chroma::chi(), invfact1, invfact2, Chroma::isign, Chroma::MINUS, Chroma::PLUS, and Chroma::psi.

◆ evenEvenLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::evenEvenLinOp ( LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

Apply the the even-even block onto a source std::vector.

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

Definition at line 32 of file eoprec_parwilson_linop_w.cc.

References Chroma::chi(), fact, H, Chroma::isign, Chroma::MINUS, Chroma::PLUS, and Chroma::psi.

◆ evenOddLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::evenOddLinOp ( LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

Apply the the even-odd block onto a source std::vector.

Apply even-odd linop component.

The operator acts on the entire even sublattice

Parameters
chiPseudofermion field (Write)
psiPseudofermion field (Read)
isignFlag ( PLUS | MINUS ) (Read)

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

Definition at line 102 of file eoprec_parwilson_linop_w.cc.

References Chroma::QDPWilsonDslashT< T, P, Q >::apply(), Chroma::chi(), D, Chroma::END_CODE(), Chroma::isign, Chroma::psi, and Chroma::START_CODE().

◆ getFermBC()

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

◆ nFlops()

unsigned long Chroma::EvenOddPrecParWilsonLinOp::nFlops ( void  ) const
virtual

Return flops performed by the operator()

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

Definition at line 49 of file eoprec_parwilson_linop_w.cc.

References D, and Chroma::WilsonDslashBase< T, P, Q >::nFlops().

◆ oddEvenLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::oddEvenLinOp ( LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

Apply the the odd-even block onto a source std::vector.

Apply odd-even linop component.

The operator acts on the entire odd sublattice

Parameters
chiPseudofermion field (Write)
psiPseudofermion field (Read)
isignFlag ( PLUS | MINUS ) (Read)

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

Definition at line 126 of file eoprec_parwilson_linop_w.cc.

References Chroma::QDPWilsonDslashT< T, P, Q >::apply(), Chroma::chi(), D, Chroma::END_CODE(), Chroma::isign, Chroma::psi, and Chroma::START_CODE().

◆ oddOddLinOp()

void Chroma::EvenOddPrecParWilsonLinOp::oddOddLinOp ( LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

Apply the the odd-odd block onto a source std::vector.

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

Definition at line 78 of file eoprec_parwilson_linop_w.cc.

References Chroma::chi(), fact, H, Chroma::isign, Chroma::MINUS, Chroma::PLUS, and Chroma::psi.

◆ operator()()

void Chroma::EvenOddPrecParWilsonLinOp::operator() ( LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

Member Data Documentation

◆ D

WilsonDslash Chroma::EvenOddPrecParWilsonLinOp::D
private

◆ fact

Real Chroma::EvenOddPrecParWilsonLinOp::fact
private

Definition at line 111 of file eoprec_parwilson_linop_w.h.

Referenced by create(), evenEvenLinOp(), oddOddLinOp(), and operator()().

◆ H

Real Chroma::EvenOddPrecParWilsonLinOp::H
private

Definition at line 116 of file eoprec_parwilson_linop_w.h.

Referenced by create(), evenEvenLinOp(), oddOddLinOp(), and operator()().

◆ invfact1

Real Chroma::EvenOddPrecParWilsonLinOp::invfact1
private

Definition at line 112 of file eoprec_parwilson_linop_w.h.

Referenced by create(), evenEvenInvLinOp(), and operator()().

◆ invfact2

Real Chroma::EvenOddPrecParWilsonLinOp::invfact2
private

Definition at line 113 of file eoprec_parwilson_linop_w.h.

Referenced by create(), evenEvenInvLinOp(), and operator()().

◆ Mass

Real Chroma::EvenOddPrecParWilsonLinOp::Mass
private

Definition at line 115 of file eoprec_parwilson_linop_w.h.

Referenced by create().


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