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

Unpreconditioned Hamber-Wu operator. More...

#include <unprec_hamberwu_linop_w.h>

Inheritance diagram for Chroma::UnprecHamberWuLinOp:
Chroma::UnprecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > Chroma::DiffLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > Chroma::LinearOperator< LatticeFermion >

Public Types

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

Public Member Functions

 UnprecHamberWuLinOp ()
 Partial constructor. More...
 
 UnprecHamberWuLinOp (Handle< FermState< T, P, Q > > fs, const Real &Mass_, const Real &u0_)
 Full constructor. More...
 
 ~UnprecHamberWuLinOp ()
 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 &u0_)
 Creation routine. More...
 
void operator() (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the operator onto a source std::vector. More...
 
void deriv (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Derivative of unpreconditioned HamberWu dM/dU. More...
 
unsigned long nFlops () const
 Return flops performed by the operator() More...
 
- Public Member Functions inherited from Chroma::UnprecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~UnprecLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
const Subset & subset () const
 Only defined on the entire lattice. More...
 
- Public Member Functions inherited from Chroma::DiffLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~DiffLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
virtual void deriv (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign, const Real &epsilon) const
 Apply the derivative of the operator onto a source std::vector to some precision. More...
 
virtual void derivMultipole (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 Return the force for multiple poles. More...
 
- Public Member Functions inherited from Chroma::LinearOperator< LatticeFermion >
virtual ~LinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
virtual void operator() (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign, Real epsilon) const
 Apply the operator onto a source std::vector to some precision. More...
 

Private Attributes

Real Mass
 
Real u0
 
Real fact1
 
Real fact2
 
Real fact3
 
Real fact4
 
multi1d< LatticeColorMatrix > u_dble
 
WilsonDslash D
 

Detailed Description

Unpreconditioned Hamber-Wu operator.

Definition at line 20 of file unprec_hamberwu_linop_w.h.

Member Typedef Documentation

◆ P

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

Definition at line 26 of file unprec_hamberwu_linop_w.h.

◆ Q

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

Definition at line 27 of file unprec_hamberwu_linop_w.h.

◆ T

typedef LatticeFermion Chroma::UnprecHamberWuLinOp::T

Definition at line 25 of file unprec_hamberwu_linop_w.h.

Constructor & Destructor Documentation

◆ UnprecHamberWuLinOp() [1/2]

Chroma::UnprecHamberWuLinOp::UnprecHamberWuLinOp ( )
inline

Partial constructor.

Definition at line 30 of file unprec_hamberwu_linop_w.h.

◆ UnprecHamberWuLinOp() [2/2]

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

Full constructor.

Definition at line 33 of file unprec_hamberwu_linop_w.h.

References create().

◆ ~UnprecHamberWuLinOp()

Chroma::UnprecHamberWuLinOp::~UnprecHamberWuLinOp ( )
inline

Destructor is automatic.

Definition at line 38 of file unprec_hamberwu_linop_w.h.

Member Function Documentation

◆ create()

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

Creation routine.

Parameters
u_gauge field (Read)
Mass_fermion kappa (Read)

Definition at line 19 of file unprec_hamberwu_linop_w.cc.

References FORWARD, Mass, mu, Nd, Chroma::u, and u0.

Referenced by UnprecHamberWuLinOp().

◆ deriv()

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

Derivative of unpreconditioned HamberWu dM/dU.

Derivative of unpreconditioned Hamber-Wu dM/dU.

Parameters
chileft std::vector on cb (Read)
psiright std::vector on 1-cb (Read)
isignD'^dag or D' ( MINUS | PLUS ) resp. (Read)
cbCheckerboard of chi std::vector (Read)
Returns
Computes $\chi^\dag * \dot(D} * \psi$

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

Definition at line 109 of file unprec_hamberwu_linop_w.cc.

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

◆ getFermBC()

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

◆ nFlops()

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

Return flops performed by the operator()

Reimplemented from Chroma::LinearOperator< LatticeFermion >.

Definition at line 92 of file unprec_hamberwu_linop_w.cc.

References Nd.

◆ operator()()

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

Apply the operator onto a source std::vector.

Implements Chroma::LinearOperator< LatticeFermion >.

Definition at line 45 of file unprec_hamberwu_linop_w.cc.

References BACKWARD, chi, END_CODE, FORWARD, Chroma::isign, mu, Nd, Chroma::PLUS, psi, START_CODE, tmp2, and Chroma::zero.

Member Data Documentation

◆ D

WilsonDslash Chroma::UnprecHamberWuLinOp::D
private

Definition at line 65 of file unprec_hamberwu_linop_w.h.

Referenced by getFermBC().

◆ fact1

Real Chroma::UnprecHamberWuLinOp::fact1
private

Definition at line 60 of file unprec_hamberwu_linop_w.h.

◆ fact2

Real Chroma::UnprecHamberWuLinOp::fact2
private

Definition at line 61 of file unprec_hamberwu_linop_w.h.

◆ fact3

Real Chroma::UnprecHamberWuLinOp::fact3
private

Definition at line 62 of file unprec_hamberwu_linop_w.h.

◆ fact4

Real Chroma::UnprecHamberWuLinOp::fact4
private

Definition at line 63 of file unprec_hamberwu_linop_w.h.

◆ Mass

Real Chroma::UnprecHamberWuLinOp::Mass
private

Definition at line 58 of file unprec_hamberwu_linop_w.h.

◆ u0

Real Chroma::UnprecHamberWuLinOp::u0
private

Definition at line 59 of file unprec_hamberwu_linop_w.h.

◆ u_dble

multi1d<LatticeColorMatrix> Chroma::UnprecHamberWuLinOp::u_dble
private

Definition at line 64 of file unprec_hamberwu_linop_w.h.


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