CHROMA
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct Class Reference

Constrained laquette gauge action. More...

#include <constrained_plaq_gaugeact.h>

Inheritance diagram for Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct:
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

 GaugeAct (Handle< CreateGaugeState< P, Q > > cgs_, const Params &p)
 
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 (multi1d< LatticeColorMatrix > &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 create state object. More...
 
 ~GaugeAct ()
 Destructor is automatic. More...
 
- 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 operator= (const GaugeAct &a)
 Hide assignment. More...
 
void siteAction (multi2d< LatticeReal > &site_act, const Handle< GaugeState< P, Q > > &state) const
 Compute the site-level action. More...
 
void derivPlaqFun (multi1d< LatticeColorMatrix > &ds_u, const Handle< GaugeState< P, Q > > &state) const
 Compute dS/dU. More...
 
void derivPlaqTwo (multi1d< LatticeColorMatrix > &ds_u, const Handle< GaugeState< P, Q > > &state) const
 Compute dS/dU. More...
 

Private Attributes

Handle< CreateGaugeState< P, Q > > cgs
 
Params param
 

Detailed Description

Constrained laquette gauge action.

The standard Constrained gauge action

Definition at line 46 of file constrained_plaq_gaugeact.h.

Member Typedef Documentation

◆ P

typedef multi1d<LatticeColorMatrix> Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::P

Definition at line 50 of file constrained_plaq_gaugeact.h.

◆ Q

typedef multi1d<LatticeColorMatrix> Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::Q

Definition at line 51 of file constrained_plaq_gaugeact.h.

Constructor & Destructor Documentation

◆ GaugeAct()

Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::GaugeAct ( Handle< CreateGaugeState< P, Q > >  cgs_,
const Params p 
)
inline

General CreateGaugeState<P,Q> Read coeff from a param struct

Definition at line 55 of file constrained_plaq_gaugeact.h.

◆ ~GaugeAct()

Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::~GaugeAct ( )
inline

Destructor is automatic.

Definition at line 79 of file constrained_plaq_gaugeact.h.

Member Function Documentation

◆ deriv()

void Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::deriv ( multi1d< LatticeColorMatrix > &  result,
const Handle< GaugeState< P, Q > > &  state 
) const
virtual

◆ derivPlaqFun()

void Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::derivPlaqFun ( multi1d< LatticeColorMatrix > &  ds_u,
const Handle< GaugeState< P, Q > > &  state 
) const
protected

◆ derivPlaqTwo()

void Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::derivPlaqTwo ( multi1d< LatticeColorMatrix > &  ds_u,
const Handle< GaugeState< P, Q > > &  state 
) const
protected

◆ getCreateState()

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

Produce a gauge create state object.

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

Definition at line 76 of file constrained_plaq_gaugeact.h.

References cgs.

◆ getSet()

const Set& Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::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 60 of file constrained_plaq_gaugeact.h.

◆ operator=()

void Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::operator= ( const GaugeAct a)
inlineprotected

Hide assignment.

Definition at line 83 of file constrained_plaq_gaugeact.h.

◆ S()

Double Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::S ( const Handle< GaugeState< P, Q > > &  state) const
virtual

◆ siteAction()

void Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::siteAction ( multi2d< LatticeReal > &  site_act,
const Handle< GaugeState< P, Q > > &  state 
) const
protected

Compute the site-level action.

Definition at line 103 of file constrained_plaq_gaugeact.cc.

References Chroma::END_CODE(), FORWARD, mu, Nd, nu, Chroma::one, Chroma::START_CODE(), Chroma::state, Chroma::u, and Chroma::zero.

Referenced by derivPlaqTwo(), and S().

◆ staple()

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

Compute staple.

Default version. Derived class should override this if needed.

Implements Chroma::LinearGaugeAction.

Definition at line 140 of file constrained_plaq_gaugeact.cc.

Member Data Documentation

◆ cgs

Handle< CreateGaugeState<P,Q> > Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::cgs
private

Create Gauge State

Definition at line 97 of file constrained_plaq_gaugeact.h.

Referenced by getCreateState().

◆ param

Params Chroma::ConstrainedPlaqGaugeActEnv::GaugeAct::param
private

The parameters

Definition at line 98 of file constrained_plaq_gaugeact.h.

Referenced by deriv(), derivPlaqTwo(), and S().


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