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

Even-odd preconditioned Clover-Dirac operator. More...

#include <eoprec_clover_linop_w.h>

Inheritance diagram for Chroma::EvenOddPrecCloverLinOp:
Chroma::EvenOddPrecLogDetLinearOperator< 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

 EvenOddPrecCloverLinOp ()
 Partial constructor. More...
 
 EvenOddPrecCloverLinOp (Handle< FermState< T, P, Q > > fs, const CloverFermActParams &param_)
 Full constructor. More...
 
 ~EvenOddPrecCloverLinOp ()
 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 CloverFermActParams &param_)
 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
 Apply even-odd preconditioned Clover fermion linear operator. 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 derivEvenEvenLinOpMP (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 Apply the even-even block onto a source std::vector. More...
 
void derivLogDetEvenEvenLinOp (multi1d< LatticeColorMatrix > &ds_u, 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...
 
void derivOddOddLinOpMP (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 
unsigned long nFlops () const
 Return flops performed by the operator() More...
 
Double logDetEvenEvenLinOp (void) const
 Get the log det of the even even part. More...
 
- Public Member Functions inherited from Chroma::EvenOddPrecLogDetLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~EvenOddPrecLogDetLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
const Subset & subset () const
 Only defined on the odd lattice. 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 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 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
 
- Public Member Functions inherited from Chroma::EvenOddPrecLinearOperator< T, P, Q >
virtual ~EvenOddPrecLinearOperator ()
 Virtual destructor to help with cleanup;. 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

CloverFermActParams param
 
WilsonDslash D
 
CloverTerm clov
 
CloverTerm invclov
 
double clov_apply_time
 
double clov_deriv_time
 
StopWatch swatch
 

Detailed Description

Even-odd preconditioned Clover-Dirac operator.

This routine is specific to Wilson fermions!

The kernel for Clover fermions is

 M  =  A + (d+M) - (1/2) D'

Definition at line 29 of file eoprec_clover_linop_w.h.

Member Typedef Documentation

◆ P

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

Definition at line 35 of file eoprec_clover_linop_w.h.

◆ Q

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

Definition at line 36 of file eoprec_clover_linop_w.h.

◆ T

typedef LatticeFermion Chroma::EvenOddPrecCloverLinOp::T

Definition at line 34 of file eoprec_clover_linop_w.h.

Constructor & Destructor Documentation

◆ EvenOddPrecCloverLinOp() [1/2]

Chroma::EvenOddPrecCloverLinOp::EvenOddPrecCloverLinOp ( )
inline

Partial constructor.

Definition at line 39 of file eoprec_clover_linop_w.h.

◆ EvenOddPrecCloverLinOp() [2/2]

Chroma::EvenOddPrecCloverLinOp::EvenOddPrecCloverLinOp ( Handle< FermState< T, P, Q > >  fs,
const CloverFermActParams param_ 
)
inline

Full constructor.

Definition at line 42 of file eoprec_clover_linop_w.h.

References create().

◆ ~EvenOddPrecCloverLinOp()

Chroma::EvenOddPrecCloverLinOp::~EvenOddPrecCloverLinOp ( )
inline

Destructor is automatic.

Definition at line 49 of file eoprec_clover_linop_w.h.

References clov_apply_time, and clov_deriv_time.

Member Function Documentation

◆ create()

void Chroma::EvenOddPrecCloverLinOp::create ( Handle< FermState< T, P, Q > >  fs,
const CloverFermActParams param_ 
)

Creation routine.

Creation routine with Anisotropy.

Parameters
u_gauge field (Read)
param_fermion kappa (Read)

Definition at line 18 of file eoprec_clover_linop_ssecombined_w.cc.

References END_CODE, and START_CODE.

Referenced by EvenOddPrecCloverLinOp(), and main().

◆ derivEvenEvenLinOp()

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

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

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

Definition at line 175 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, and START_CODE.

◆ derivEvenEvenLinOpMP()

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

◆ derivEvenOddLinOp()

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

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

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

Definition at line 204 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, mu, Nd, psi, and START_CODE.

◆ derivLogDetEvenEvenLinOp()

void Chroma::EvenOddPrecCloverLinOp::derivLogDetEvenEvenLinOp ( multi1d< LatticeColorMatrix > &  ds_u,
enum PlusMinus  isign 
) const
virtual

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

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

Definition at line 191 of file eoprec_clover_linop_ssecombined_w.cc.

References END_CODE, Chroma::isign, and START_CODE.

◆ derivOddEvenLinOp()

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

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

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

Definition at line 219 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, mu, Nd, psi, and START_CODE.

◆ derivOddOddLinOp()

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

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

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

Definition at line 236 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, and START_CODE.

◆ derivOddOddLinOpMP()

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

◆ evenEvenInvLinOp()

void Chroma::EvenOddPrecCloverLinOp::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 75 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, and START_CODE.

◆ evenEvenLinOp()

void Chroma::EvenOddPrecCloverLinOp::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 59 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, and START_CODE.

◆ evenOddLinOp()

void Chroma::EvenOddPrecCloverLinOp::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 98 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, and START_CODE.

◆ getFermBC()

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

◆ logDetEvenEvenLinOp()

Double Chroma::EvenOddPrecCloverLinOp::logDetEvenEvenLinOp ( void  ) const
virtual

◆ nFlops()

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

Return flops performed by the operator()

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

Definition at line 252 of file eoprec_clover_linop_ssecombined_w.cc.

Referenced by main().

◆ oddEvenLinOp()

void Chroma::EvenOddPrecCloverLinOp::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 121 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, and START_CODE.

◆ oddOddLinOp()

void Chroma::EvenOddPrecCloverLinOp::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 43 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, and START_CODE.

◆ operator()()

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

Apply even-odd preconditioned Clover fermion linear operator.

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

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

Definition at line 142 of file eoprec_clover_linop_ssecombined_w.cc.

References chi, END_CODE, Chroma::isign, psi, START_CODE, and tmp2.

Member Data Documentation

◆ clov

CloverTerm Chroma::EvenOddPrecCloverLinOp::clov
private

Definition at line 127 of file eoprec_clover_linop_w.h.

◆ clov_apply_time

double Chroma::EvenOddPrecCloverLinOp::clov_apply_time
mutableprivate

Definition at line 129 of file eoprec_clover_linop_w.h.

Referenced by ~EvenOddPrecCloverLinOp().

◆ clov_deriv_time

double Chroma::EvenOddPrecCloverLinOp::clov_deriv_time
mutableprivate

Definition at line 130 of file eoprec_clover_linop_w.h.

Referenced by ~EvenOddPrecCloverLinOp().

◆ D

WilsonDslash Chroma::EvenOddPrecCloverLinOp::D
private

Definition at line 126 of file eoprec_clover_linop_w.h.

Referenced by getFermBC().

◆ invclov

CloverTerm Chroma::EvenOddPrecCloverLinOp::invclov
private

Definition at line 128 of file eoprec_clover_linop_w.h.

◆ param

CloverFermActParams Chroma::EvenOddPrecCloverLinOp::param
private

Definition at line 125 of file eoprec_clover_linop_w.h.

◆ swatch

StopWatch Chroma::EvenOddPrecCloverLinOp::swatch
mutableprivate

Definition at line 131 of file eoprec_clover_linop_w.h.


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