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

LW1Loop gauge action. More...

#include <lw_1loop_gaugeact.h>

Inheritance diagram for Chroma::LW1LoopGaugeAct:
Chroma::LinearGaugeAction Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >

Public Types

typedef multi1d< LatticeColorMatrix > P
 
typedef multi1d< LatticeColorMatrix > Q
 
- Public Types inherited from Chroma::LinearGaugeAction
typedef multi1d< LatticeColorMatrix > P
 
typedef multi1d< LatticeColorMatrix > Q
 

Public Member Functions

 LW1LoopGaugeAct (Handle< CreateGaugeState< P, Q > > cgs_, const Real &beta_, const Real &u0_)
 General GaugeState. More...
 
 LW1LoopGaugeAct (Handle< CreateGaugeState< P, Q > > cgs_, const LW1LoopGaugeActParams &p)
 Read beta from a param struct. More...
 
bool anisoP () const
 Is anisotropy used? More...
 
const Real anisoFactor () const
 Anisotropy factor. More...
 
int tDir () const
 Anisotropic direction. More...
 
const Set & getSet () const
 Return the set on which the gauge action is defined. More...
 
void staple (LatticeColorMatrix &result, const Handle< GaugeState< P, Q > > &state, int mu, int cb) const
 Compute staple. More...
 
void deriv (P &result, const Handle< GaugeState< P, Q > > &state) const
 Compute dS/dU. More...
 
Double S (const Handle< GaugeState< P, Q > > &state) const
 Compute the actions. More...
 
const CreateGaugeState< P, Q > & getCreateState () const
 Produce a gauge boundary condition object. More...
 
 ~LW1LoopGaugeAct ()
 Destructor is automatic. More...
 
const Real getBeta (void) const
 
- Public Member Functions inherited from Chroma::LinearGaugeAction
virtual ~LinearGaugeAction ()
 Virtual destructor to help with cleanup;. More...
 
- Public Member Functions inherited from Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~GaugeAction ()
 Virtual destructor to help with cleanup;. More...
 
virtual GaugeState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createState (const multi1d< LatticeColorMatrix > &q) const
 Given links, create the state. More...
 
virtual const GaugeBC< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getGaugeBC () const
 Return the gauge BC object for this action. More...
 

Protected Member Functions

void init (Handle< CreateGaugeState< P, Q > > cgs)
 Private initializer. More...
 
 LW1LoopGaugeAct ()
 General GaugeState. More...
 
void operator= (const LW1LoopGaugeAct &a)
 Hide assignment. More...
 

Private Attributes

Real beta
 
Real u0
 
Handle< PlaqGaugeActplaq
 
Handle< RectGaugeActrect
 
Handle< PgGaugeActpg
 

Detailed Description

LW1Loop gauge action.

The standard LW1Loop gauge action

Definition at line 48 of file lw_1loop_gaugeact.h.

Member Typedef Documentation

◆ P

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

Definition at line 52 of file lw_1loop_gaugeact.h.

◆ Q

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

Definition at line 53 of file lw_1loop_gaugeact.h.

Constructor & Destructor Documentation

◆ LW1LoopGaugeAct() [1/3]

Chroma::LW1LoopGaugeAct::LW1LoopGaugeAct ( Handle< CreateGaugeState< P, Q > >  cgs_,
const Real &  beta_,
const Real &  u0_ 
)
inline

General GaugeState.

Definition at line 56 of file lw_1loop_gaugeact.h.

References init().

◆ LW1LoopGaugeAct() [2/3]

Chroma::LW1LoopGaugeAct::LW1LoopGaugeAct ( Handle< CreateGaugeState< P, Q > >  cgs_,
const LW1LoopGaugeActParams p 
)
inline

Read beta from a param struct.

Definition at line 61 of file lw_1loop_gaugeact.h.

References init().

◆ ~LW1LoopGaugeAct()

Chroma::LW1LoopGaugeAct::~LW1LoopGaugeAct ( )
inline

Destructor is automatic.

Definition at line 118 of file lw_1loop_gaugeact.h.

◆ LW1LoopGaugeAct() [3/3]

Chroma::LW1LoopGaugeAct::LW1LoopGaugeAct ( )
inlineprotected

General GaugeState.

Definition at line 128 of file lw_1loop_gaugeact.h.

Member Function Documentation

◆ anisoFactor()

const Real Chroma::LW1LoopGaugeAct::anisoFactor ( ) const
inline

Anisotropy factor.

Definition at line 69 of file lw_1loop_gaugeact.h.

◆ anisoP()

bool Chroma::LW1LoopGaugeAct::anisoP ( ) const
inline

Is anisotropy used?

Definition at line 66 of file lw_1loop_gaugeact.h.

◆ deriv()

void Chroma::LW1LoopGaugeAct::deriv ( P result,
const Handle< GaugeState< P, Q > > &  state 
) const
inlinevirtual

Compute dS/dU.

Reimplemented from Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 95 of file lw_1loop_gaugeact.h.

References pg, plaq, rect, Chroma::state, and Chroma::tmp.

◆ getBeta()

const Real Chroma::LW1LoopGaugeAct::getBeta ( void  ) const
inline

Definition at line 121 of file lw_1loop_gaugeact.h.

References beta.

◆ getCreateState()

const CreateGaugeState<P,Q>& Chroma::LW1LoopGaugeAct::getCreateState ( ) const
inlinevirtual

Produce a gauge boundary condition object.

Implements Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 115 of file lw_1loop_gaugeact.h.

References plaq.

◆ getSet()

const Set& Chroma::LW1LoopGaugeAct::getSet ( void  ) const
inlinevirtual

Return the set on which the gauge action is defined.

Defined on the even-off (red/black) set

Implements Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 76 of file lw_1loop_gaugeact.h.

◆ init()

void Chroma::LW1LoopGaugeAct::init ( Handle< CreateGaugeState< P, Q > >  cgs)
protected

Private initializer.

Definition at line 62 of file lw_1loop_gaugeact.cc.

References beta, Chroma::END_CODE(), pg, plaq, rect, Chroma::START_CODE(), and u0.

Referenced by LW1LoopGaugeAct().

◆ operator=()

void Chroma::LW1LoopGaugeAct::operator= ( const LW1LoopGaugeAct a)
inlineprotected

Hide assignment.

Definition at line 130 of file lw_1loop_gaugeact.h.

◆ S()

Double Chroma::LW1LoopGaugeAct::S ( const Handle< GaugeState< P, Q > > &  state) const
inlinevirtual

Compute the actions.

Implements Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 109 of file lw_1loop_gaugeact.h.

References pg, plaq, rect, and Chroma::state.

◆ staple()

void Chroma::LW1LoopGaugeAct::staple ( LatticeColorMatrix &  result,
const Handle< GaugeState< P, Q > > &  state,
int  mu,
int  cb 
) const
inlinevirtual

Compute staple.

Default version. Derived class should override this if needed.

Implements Chroma::LinearGaugeAction.

Definition at line 80 of file lw_1loop_gaugeact.h.

References Chroma::cb, mu, pg, plaq, rect, Chroma::state, and Chroma::tmp.

◆ tDir()

int Chroma::LW1LoopGaugeAct::tDir ( ) const
inline

Anisotropic direction.

Definition at line 72 of file lw_1loop_gaugeact.h.

References Nd.

Member Data Documentation

◆ beta

Real Chroma::LW1LoopGaugeAct::beta
private

Definition at line 133 of file lw_1loop_gaugeact.h.

Referenced by getBeta(), and init().

◆ pg

Handle<PgGaugeAct> Chroma::LW1LoopGaugeAct::pg
private

Definition at line 137 of file lw_1loop_gaugeact.h.

Referenced by deriv(), init(), S(), and staple().

◆ plaq

Handle<PlaqGaugeAct> Chroma::LW1LoopGaugeAct::plaq
private

Definition at line 135 of file lw_1loop_gaugeact.h.

Referenced by deriv(), getCreateState(), init(), S(), and staple().

◆ rect

Handle<RectGaugeAct> Chroma::LW1LoopGaugeAct::rect
private

Definition at line 136 of file lw_1loop_gaugeact.h.

Referenced by deriv(), init(), S(), and staple().

◆ u0

Real Chroma::LW1LoopGaugeAct::u0
private

Definition at line 134 of file lw_1loop_gaugeact.h.

Referenced by init().


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