Bridge++  Version 1.5.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=Element_type::COMPLEX)
 
Field clone () const
 
void reset (const int Nin, const int Nvol, const int Nex, const element_type cmpl=Element_type::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
typedef Element_type::type element_type
 
typedef double real_t
 
- Protected Member Functions inherited from Field
size_t 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 65 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 168 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 176 of file field_G.h.

void Field_G::check ( )
private

check of assumptions for performance implementation.

Definition at line 28 of file field_G_imp.cpp.

Field_G Field_G::clone ( ) const
inline

Definition at line 58 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 92 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 87 of file field_G.h.

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

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

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

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

int Field_G::nc ( ) const
inline

Definition at line 84 of file field_G.h.

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

Definition at line 76 of file field_G.h.

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

Definition at line 79 of file field_G.h.

void Field_G::reunit ( )

Definition at line 84 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 102 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 160 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 97 of file field_G.h.

void Field_G::set_random ( RandomNumbers rand)

Definition at line 60 of file field_G_imp.cpp.

void Field_G::set_random ( unique_ptr< RandomNumbers > &  rand)

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

void Field_G::set_unit ( )

Definition at line 37 of file field_G_imp.cpp.

void Field_G::xI ( )
inline

Definition at line 184 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: