Bridge++  Version 1.4.4
 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 Field_G &v)
 
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 set_random (unique_ptr< 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 Field &v)
 
int nin () const
 
int nvol () const
 
int nex () const
 
element_type field_element_type () const
 
int ntot () const
 
int size () const
 
bool check_size (const int nin, const int nvol, const int nex) const
 checking size parameters. [23 May 2016 H.Matsufuru] More...
 
double cmp (const int jin, const int site, const int jex) const
 
double cmp (const int i) const
 
const double * ptr (const int jin, const int site, const int jex) const
 
double * ptr (const int jin, const int site, const int jex)
 
const double * ptr (const int i) const
 
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)
 
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] unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa]

Definition at line 38 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 47 of file field_G.h.

Field_G::Field_G ( const Field x)
inline

Definition at line 64 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 167 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 175 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 57 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 91 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 86 of file field_G.h.

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

Definition at line 113 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 139 of file field_G.h.

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

Definition at line 126 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 148 of file field_G.h.

int Field_G::nc ( ) const
inline

Definition at line 83 of file field_G.h.

Field_G& Field_G::operator= ( const Field_G v)
inline

Definition at line 75 of file field_G.h.

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

Definition at line 78 of file field_G.h.

void Field_G::reunit ( )

Definition at line 86 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 101 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 159 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 96 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_random ( unique_ptr< RandomNumbers > &  rand)

Definition at line 79 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 106 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 183 of file field_G.h.

Member Data Documentation

int Field_G::m_Nc
private

Definition at line 41 of file field_G.h.

int Field_G::m_Ndf
private

Definition at line 42 of file field_G.h.


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