Bridge++  Ver. 1.2.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Field_G Class Reference

SU(N) gauge field. More...

#include <field_G.h>

Inheritance diagram for Field_G:
Field Field_G_SF

Public Member Functions

 Field_G (const int Nvol=CommonParameters::Nvol(), const int Nex=1)
 
Field_G clone () const
 
 Field_G (const Field &x)
 
Field_Goperator= (const double a)
 
void reset (const int Nvol, const int Nex)
 
int nc () const
 
double cmp_r (const int cc, const int site, const int mn=0) const
 
double cmp_i (const int cc, const int site, const int mn=0) const
 
void set_r (const int cc, const int site, const int mn, const double re)
 
void set_i (const int cc, const int site, const int mn, const double im)
 
void set_ri (const int cc, const int site, const int mn, const double re, const double im)
 
Mat_SU_N mat (const int site, const int mn=0) const
 
Mat_SU_N mat_dag (const int site, const int mn=0) const
 
void mat (Mat_SU_N &Tmp, const int site, const int mn=0) const
 
void mat_dag (Mat_SU_N &Tmp, const int site, const int mn=0) const
 
void set_mat (const int site, const int mn, const Mat_SU_N &U)
 
void add_mat (const int site, const int mn, const Mat_SU_N &U)
 
void add_mat (const int site, const int mn, const Mat_SU_N &U, double prf)
 
void xI ()
 
void set_unit ()
 
void set_random (RandomNumbers *rand)
 
void reunit ()
 
- Public Member Functions inherited from Field
 Field ()
 
 Field (const int Nin, const int Nvol, const int Nex, const element_type cmpl=COMPLEX)
 
Field clone () const
 
void reset (const int Nin, const int Nvol, const int Nex, const element_type cmpl=COMPLEX)
 
Fieldoperator= (const double a)
 
int nin () const
 
int nvol () const
 
int nex () const
 
element_type field_element_type () const
 
int ntot () const
 
int size () const
 
double cmp (const int jin, const int site, const int jex) const
 
double cmp (const int i) const
 
double * ptr (const int jin, const int site, const int jex)
 
double * ptr (const int i)
 
void set (const int jin, const int site, const int jex, double v)
 
void set (const int i, double v)
 
void set (double a)
 
void add (const int jin, const int site, const int jex, double v)
 
void add (const int i, double v)
 
void setpart_ex (int ex, const Field &w, int exw)
 
void addpart_ex (int ex, const Field &w, int exw)
 
void addpart_ex (int ex, const Field &w, int exw, double prf)
 
Fieldoperator+= (const Field &v)
 
Fieldoperator-= (const Field &v)
 
Fieldoperator*= (const double a)
 
Fieldoperator/= (const double a)
 
Fieldoperator*= (const dcomplex a)
 
double operator* (const Field &rhs)
 
double norm2 () const
 
double norm () const
 
void stat (double &Fave, double &Fmax, double &Fdev) const
 determines the statistics of the field. average, maximum value, and deviation is determined over global lattice. On-site degree of freedom is sumed over in quadrature, not averaged. This function works only on single node. More...
 

Private Member Functions

void check ()
 check of assumptions for performance implementation. More...
 

Private Attributes

int m_Nc
 
int m_Ndf
 

Additional Inherited Members

- Public Types inherited from Field
enum  element_type { REAL = 1, COMPLEX = 2 }
 
- Protected Member Functions inherited from Field
int myindex (const int jin, const int site, const int jex) const
 
- Protected Attributes inherited from Field
int m_Nin
 
int m_Nvol
 
int m_Nex
 
element_type m_element_type
 
std::valarray< double > field
 
Bridge::VerboseLevel m_vl
 

Detailed Description

SU(N) gauge field.

This class defines SU(N) gauge field, which is used such as gauge configuration. Original version of this class was written by J.Noaki. H.Matsufuru added several functions and modified intefaces of several functionality. 28 Dec 2011 H.Matsufuru reunit is added. [26 May 2014 Y.Namekawa]

Definition at line 36 of file field_G.h.

Constructor & Destructor Documentation

Field_G::Field_G ( const int  Nvol = CommonParameters::Nvol(),
const int  Nex = 1 
)
inlineexplicit

Definition at line 45 of file field_G.h.

Field_G::Field_G ( const Field x)
inline

Definition at line 62 of file field_G.h.

Member Function Documentation

void Field_G::add_mat ( const int  site,
const int  mn,
const Mat_SU_N U 
)
inline

Definition at line 164 of file field_G.h.

void Field_G::add_mat ( const int  site,
const int  mn,
const Mat_SU_N U,
double  prf 
)
inline

Definition at line 172 of file field_G.h.

void Field_G::check ( )
private

check of assumptions for performance implementation.

Definition at line 30 of file field_G_imp.cpp.

Field_G Field_G::clone ( ) const
inline

Definition at line 55 of file field_G.h.

double Field_G::cmp_i ( const int  cc,
const int  site,
const int  mn = 0 
) const
inline

Definition at line 88 of file field_G.h.

double Field_G::cmp_r ( const int  cc,
const int  site,
const int  mn = 0 
) const
inline

Definition at line 83 of file field_G.h.

Mat_SU_N Field_G::mat ( const int  site,
const int  mn = 0 
) const
inline

Definition at line 110 of file field_G.h.

void Field_G::mat ( Mat_SU_N Tmp,
const int  site,
const int  mn = 0 
) const
inline

Definition at line 136 of file field_G.h.

Mat_SU_N Field_G::mat_dag ( const int  site,
const int  mn = 0 
) const
inline

Definition at line 123 of file field_G.h.

void Field_G::mat_dag ( Mat_SU_N Tmp,
const int  site,
const int  mn = 0 
) const
inline

Definition at line 145 of file field_G.h.

int Field_G::nc ( ) const
inline

Definition at line 80 of file field_G.h.

Field_G& Field_G::operator= ( const double  a)
inline

Definition at line 72 of file field_G.h.

void Field_G::reset ( const int  Nvol,
const int  Nex 
)
inline

Definition at line 75 of file field_G.h.

void Field_G::reunit ( )

Definition at line 79 of file field_G_imp.cpp.

void Field_G::set_i ( const int  cc,
const int  site,
const int  mn,
const double  im 
)
inline

Definition at line 98 of file field_G.h.

void Field_G::set_mat ( const int  site,
const int  mn,
const Mat_SU_N U 
)
inline

Definition at line 156 of file field_G.h.

void Field_G::set_r ( const int  cc,
const int  site,
const int  mn,
const double  re 
)
inline

Definition at line 93 of file field_G.h.

void Field_G::set_random ( RandomNumbers rand)

Definition at line 62 of file field_G_imp.cpp.

void Field_G::set_ri ( const int  cc,
const int  site,
const int  mn,
const double  re,
const double  im 
)
inline

Definition at line 103 of file field_G.h.

void Field_G::set_unit ( )

Definition at line 39 of file field_G_imp.cpp.

void Field_G::xI ( )
inline

Definition at line 180 of file field_G.h.

Member Data Documentation

int Field_G::m_Nc
private

Definition at line 39 of file field_G.h.

int Field_G::m_Ndf
private

Definition at line 40 of file field_G.h.


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