Bridge++  Ver. 1.1.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 (const Field &x)
 
void reset (const int Nvol, const int Nex)
 
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 mult_Field_Gnn (int ex, const Field_G &, int ex1, const Field_G &, int ex2)
 
void mult_Field_Gnd (int ex, const Field_G &, int ex1, const Field_G &, int ex2)
 
void mult_Field_Gdn (int ex, const Field_G &, int ex1, const Field_G &, int ex2)
 
void mult_Field_Gdd (int ex, const Field_G &, int ex1, const Field_G &, int ex2)
 
void multadd_Field_Gnn (int ex, const Field_G &, int ex1, const Field_G &, int ex2, double)
 
void multadd_Field_Gnd (int ex, const Field_G &, int ex1, const Field_G &, int ex2, double)
 
void multadd_Field_Gdn (int ex, const Field_G &, int ex1, const Field_G &, int ex2, double)
 
void multadd_Field_Gdd (int ex, const Field_G &, int ex1, const Field_G &, int ex2, double)
 
void ah_Field_G (int ex)
 bulk operation of antihermitian More...
 
void at_Field_G (int ex)
 bulk operation of antihermitian traceless More...
 
Field_Goperator- ()
 
Field_Goperator= (const double &)
 
Field_Goperator+= (const Field_G &)
 
Field_Goperator-= (const Field_G &)
 
Field_Goperator*= (const double &)
 
Field_Goperator*= (const dcomplex &)
 
Field_Goperator/= (const double &)
 
Field_Goperator/= (const dcomplex &)
 
- Public Member Functions inherited from Field
 Field ()
 
 Field (const int Nin, const int Nvol, const int Nex, const complexness cmpl=COMPLEX)
 
void reset (const int Nin, const int Nvol, const int Nex, const complexness cmpl=COMPLEX)
 
int nin () const
 
int nex () const
 
int nvol () const
 
int ntot () const
 
int size () const
 
complexness field_complexness () const
 
double cmp (const int jin, const int site, const int jex) const
 
double cmp (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 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 norm () const
 
double ddotc (const Field &x) const
 
double norm2 () const
 
void daxpy (double a, const Field &x)
 
void daxpy (dcomplex a, const Field &x)
 
void dscal (double a)
 
void dcopy (const Field &x)
 
void dcopy (double a, const Field &x)
 
void clear ()
 
void stat (double &Fave, double &Fmax, double &Fdev)
 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...
 
void write_text (std::string)
 write field values to a text file. More...
 
void read_text (std::string)
 read field values from text file. Assumes field size is already defined, and if it is inconsistent with the field in the file, aborted. This function works only on single node. More...
 
Fieldoperator- ()
 
Fieldoperator= (const double &)
 
Fieldoperator+= (const Field &)
 
Fieldoperator-= (const Field &)
 
Fieldoperator*= (const double &)
 
Fieldoperator/= (const double &)
 
double operator* (const Field &rhs)
 

Private Attributes

int m_Nc
 
int m_Ndf
 
int m_Nvol
 
int m_Nex
 

Additional Inherited Members

- Public Types inherited from Field
enum  complexness { COMPLEX, REAL }
 
- Protected Member Functions inherited from Field
int myindex (const int jin, const int site, const int jex) const
 
- Protected Attributes inherited from Field
std::valarray< double > field
 
int m_Nvol
 
int m_Nin
 
int m_Nex
 
complexness m_complexness
 
int m_Ntot
 
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]

Definition at line 35 of file field_G.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file field_G.h.

Field_G::Field_G ( const Field x)
inline

Definition at line 54 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 146 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 154 of file field_G.h.

void Field_G::ah_Field_G ( int  ex)

bulk operation of antihermitian

Definition at line 374 of file field_G_imp.cpp.

void Field_G::at_Field_G ( int  ex)

bulk operation of antihermitian traceless

Definition at line 337 of file field_G_imp.cpp.

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

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

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

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

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

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

void Field_G::mult_Field_Gdd ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2 
)

Definition at line 142 of file field_G_imp.cpp.

void Field_G::mult_Field_Gdn ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2 
)

Definition at line 64 of file field_G_imp.cpp.

void Field_G::mult_Field_Gnd ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2 
)

Definition at line 103 of file field_G_imp.cpp.

void Field_G::mult_Field_Gnn ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2 
)

Definition at line 25 of file field_G_imp.cpp.

void Field_G::multadd_Field_Gdd ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2,
double  ff 
)

Definition at line 298 of file field_G_imp.cpp.

void Field_G::multadd_Field_Gdn ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2,
double  ff 
)

Definition at line 220 of file field_G_imp.cpp.

void Field_G::multadd_Field_Gnd ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2,
double  ff 
)

Definition at line 259 of file field_G_imp.cpp.

void Field_G::multadd_Field_Gnn ( int  ex,
const Field_G u1,
int  ex1,
const Field_G u2,
int  ex2,
double  ff 
)

Definition at line 181 of file field_G_imp.cpp.

Field_G & Field_G::operator*= ( const double &  rhs)
inline

Definition at line 239 of file field_G.h.

Field_G& Field_G::operator*= ( const dcomplex &  )
Field_G & Field_G::operator+= ( const Field_G rhs)
inline

Definition at line 225 of file field_G.h.

Field_G & Field_G::operator- ( )
inline

Definition at line 211 of file field_G.h.

Field_G & Field_G::operator-= ( const Field_G rhs)
inline

Definition at line 232 of file field_G.h.

Field_G & Field_G::operator/= ( const double &  rhs)
inline

Definition at line 246 of file field_G.h.

Field_G& Field_G::operator/= ( const dcomplex &  )
Field_G & Field_G::operator= ( const double &  r)
inline

Definition at line 218 of file field_G.h.

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

Definition at line 64 of file field_G.h.

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

Definition at line 86 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 138 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 81 of file field_G.h.

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

Definition at line 91 of file field_G.h.

void Field_G::xI ( )
inline

Definition at line 162 of file field_G.h.

Member Data Documentation

int Field_G::m_Nc
private

Definition at line 37 of file field_G.h.

int Field_G::m_Ndf
private

Definition at line 38 of file field_G.h.

int Field_G::m_Nex
private

Definition at line 40 of file field_G.h.

int Field_G::m_Nvol
private

Definition at line 39 of file field_G.h.


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