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

Staggered-type fermion field. More...

#include <field_F_1spinor.h>

Inheritance diagram for Field_F_1spinor:
Field

Public Member Functions

 Field_F_1spinor (const int Nvol=CommonParameters::Nvol(), const int Nex=1)
 
 Field_F_1spinor (const Field &x)
 
Field_F_1spinoroperator= (const double a)
 
double cmp_r (const int cc, const int site, const int e=0) const
 
double cmp_i (const int cc, const int site, const int e=0) const
 
void set_r (const int cc, const int site, const int e, const double re)
 
void set_i (const int cc, const int site, const int e, const double im)
 
void set_ri (const int cc, const int site, const int e, const double re, const double im)
 
Vec_SU_N vec (const int site, const int e=0) const
 
void set_vec (const int site, const int e, const Vec_SU_N &F)
 
void add_vec (const int site, const int e, const Vec_SU_N &F)
 
void clear_vec (const int site, const int e)
 
- 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

int myindex (const int c2, const int site, const int ex) const
 

Private Attributes

int m_Nc
 
int m_Nc2
 

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

Staggered-type fermion field.

This class defines 1-spinor fermion field, which is mainly used by staggered-type fermions. [28 Dec 2011 H.Matsufuru]

Definition at line 31 of file field_F_1spinor.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file field_F_1spinor.h.

Field_F_1spinor::Field_F_1spinor ( const Field x)
inline

Definition at line 54 of file field_F_1spinor.h.

Member Function Documentation

void Field_F_1spinor::add_vec ( const int  site,
const int  e,
const Vec_SU_N F 
)
inline

Definition at line 111 of file field_F_1spinor.h.

void Field_F_1spinor::clear_vec ( const int  site,
const int  e 
)
inline

Definition at line 119 of file field_F_1spinor.h.

double Field_F_1spinor::cmp_i ( const int  cc,
const int  site,
const int  e = 0 
) const
inline

Definition at line 70 of file field_F_1spinor.h.

double Field_F_1spinor::cmp_r ( const int  cc,
const int  site,
const int  e = 0 
) const
inline

Definition at line 65 of file field_F_1spinor.h.

int Field_F_1spinor::myindex ( const int  c2,
const int  site,
const int  ex 
) const
inlineprivate

Definition at line 38 of file field_F_1spinor.h.

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

Definition at line 62 of file field_F_1spinor.h.

void Field_F_1spinor::set_i ( const int  cc,
const int  site,
const int  e,
const double  im 
)
inline

Definition at line 80 of file field_F_1spinor.h.

void Field_F_1spinor::set_r ( const int  cc,
const int  site,
const int  e,
const double  re 
)
inline

Definition at line 75 of file field_F_1spinor.h.

void Field_F_1spinor::set_ri ( const int  cc,
const int  site,
const int  e,
const double  re,
const double  im 
)
inline

Definition at line 85 of file field_F_1spinor.h.

void Field_F_1spinor::set_vec ( const int  site,
const int  e,
const Vec_SU_N F 
)
inline

Definition at line 103 of file field_F_1spinor.h.

Vec_SU_N Field_F_1spinor::vec ( const int  site,
const int  e = 0 
) const
inline

Definition at line 91 of file field_F_1spinor.h.

Member Data Documentation

int Field_F_1spinor::m_Nc
private

Definition at line 34 of file field_F_1spinor.h.

int Field_F_1spinor::m_Nc2
private

Definition at line 35 of file field_F_1spinor.h.


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