CHROMA
|
Even-odd preconditioned Wilson fermion linear operator with parity breaking term. More...
#include <eoprec_parwilson_linop_w.h>
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... | |
![]() | |
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... | |
![]() | |
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... | |
![]() | |
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... | |
![]() | |
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 |
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.
typedef multi1d<LatticeColorMatrix> Chroma::EvenOddPrecParWilsonLinOp::P |
Definition at line 32 of file eoprec_parwilson_linop_w.h.
typedef multi1d<LatticeColorMatrix> Chroma::EvenOddPrecParWilsonLinOp::Q |
Definition at line 33 of file eoprec_parwilson_linop_w.h.
typedef LatticeFermion Chroma::EvenOddPrecParWilsonLinOp::T |
Definition at line 31 of file eoprec_parwilson_linop_w.h.
|
inline |
Partial constructor.
Definition at line 36 of file eoprec_parwilson_linop_w.h.
|
inline |
Destructor is automatic.
Definition at line 44 of file eoprec_parwilson_linop_w.h.
void Chroma::EvenOddPrecParWilsonLinOp::create | ( | Handle< FermState< T, P, Q > > | fs, |
const Real & | Mass_, | ||
const Real & | H_ | ||
) |
Creation routine.
u_ | gauge field (Read) |
Mass_ | fermion mass (Read) |
H_ | parity breaking term (Read) |
fs | gauge 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().
|
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.
|
virtual |
Apply the the even-odd block onto a source std::vector.
Derivative of even-odd linop component.
Reimplemented from Chroma::EvenOddPrecConstDetLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.
Definition at line 192 of file eoprec_parwilson_linop_w.cc.
References Chroma::chi(), D, Chroma::WilsonDslashBase< T, P, Q >::deriv(), Chroma::END_CODE(), Chroma::isign, mu, Nd, Chroma::psi, and Chroma::START_CODE().
|
virtual |
Apply the the odd-even block onto a source std::vector.
Derivative of odd-even linop component.
Reimplemented from Chroma::EvenOddPrecConstDetLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.
Definition at line 212 of file eoprec_parwilson_linop_w.cc.
References Chroma::chi(), D, Chroma::WilsonDslashBase< T, P, Q >::deriv(), Chroma::END_CODE(), Chroma::isign, mu, Nd, Chroma::psi, and Chroma::START_CODE().
|
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.
|
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.
|
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.
|
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
chi | Pseudofermion field (Write) |
psi | Pseudofermion field (Read) |
isign | Flag ( 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().
Return the fermion BC object for this linear operator.
Definition at line 47 of file eoprec_parwilson_linop_w.h.
References D, and Chroma::QDPWilsonDslashT< T, P, Q >::getFermBC().
Referenced by operator()().
|
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().
|
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
chi | Pseudofermion field (Write) |
psi | Pseudofermion field (Read) |
isign | Flag ( 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().
|
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.
|
virtual |
Override inherited one with a few more funkies.
Reimplemented from Chroma::EvenOddPrecLinearOperator< T, P, Q >.
Definition at line 143 of file eoprec_parwilson_linop_w.cc.
References Chroma::QDPWilsonDslashT< T, P, Q >::apply(), Chroma::chi(), D, fact, getFermBC(), H, invfact1, invfact2, Chroma::isign, Chroma::MINUS, Chroma::PLUS, Chroma::psi, tmp2, and tmp3.
|
private |
Definition at line 118 of file eoprec_parwilson_linop_w.h.
Referenced by create(), derivEvenOddLinOp(), derivOddEvenLinOp(), evenOddLinOp(), getFermBC(), nFlops(), oddEvenLinOp(), and operator()().
|
private |
Definition at line 111 of file eoprec_parwilson_linop_w.h.
Referenced by create(), evenEvenLinOp(), oddOddLinOp(), and operator()().
|
private |
Definition at line 116 of file eoprec_parwilson_linop_w.h.
Referenced by create(), evenEvenLinOp(), oddOddLinOp(), and operator()().
|
private |
Definition at line 112 of file eoprec_parwilson_linop_w.h.
Referenced by create(), evenEvenInvLinOp(), and operator()().
|
private |
Definition at line 113 of file eoprec_parwilson_linop_w.h.
Referenced by create(), evenEvenInvLinOp(), and operator()().
|
private |
Definition at line 115 of file eoprec_parwilson_linop_w.h.
Referenced by create().