Bridge++  Ver. 2.0.2
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 Field_F_1spinor &v)
 
void reset (int Nvol, int Nex)
 
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=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 setc (double a)
 
void setc (dcomplex 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 xI ()
 
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. 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
typedef Element_type::type element_type
 
typedef double real_t
 
- Static Public Attributes inherited from Field
static const std::string class_name = "Field"
 
- 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
 internal d.o.f. More...
 
int m_Nvol
 lattice volume More...
 
int m_Nex
 external d.o.f. More...
 
element_type m_element_type
 field complex type More...
 
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]

Added two functions mult_Field_Gn() and mult_Field_Gd() intended to be used for fermion gradient flow equation $\partial_t\chi(t,x)=D_\mu D_\mu\chi(t,x)$ since the covariant derivative $D_\mu$ has no spin index. [25 May 2017 Y.Taniguchi]

Definition at line 38 of file field_F_1spinor.h.

Constructor & Destructor Documentation

◆ Field_F_1spinor() [1/2]

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

Definition at line 53 of file field_F_1spinor.h.

◆ Field_F_1spinor() [2/2]

Field_F_1spinor::Field_F_1spinor ( const Field x)
inline

Definition at line 61 of file field_F_1spinor.h.

Member Function Documentation

◆ add_vec()

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

Definition at line 125 of file field_F_1spinor.h.

◆ clear_vec()

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

Definition at line 133 of file field_F_1spinor.h.

◆ cmp_i()

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

Definition at line 84 of file field_F_1spinor.h.

◆ cmp_r()

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

Definition at line 79 of file field_F_1spinor.h.

◆ myindex()

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

Definition at line 45 of file field_F_1spinor.h.

◆ operator=()

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

Definition at line 70 of file field_F_1spinor.h.

◆ reset()

void Field_F_1spinor::reset ( int  Nvol,
int  Nex 
)
inline

Definition at line 76 of file field_F_1spinor.h.

◆ set_i()

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

Definition at line 94 of file field_F_1spinor.h.

◆ set_r()

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

Definition at line 89 of file field_F_1spinor.h.

◆ set_ri()

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 99 of file field_F_1spinor.h.

◆ set_vec()

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

Definition at line 117 of file field_F_1spinor.h.

◆ vec()

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

Definition at line 105 of file field_F_1spinor.h.

Member Data Documentation

◆ m_Nc

int Field_F_1spinor::m_Nc
private

Definition at line 41 of file field_F_1spinor.h.

◆ m_Nc2

int Field_F_1spinor::m_Nc2
private

Definition at line 42 of file field_F_1spinor.h.


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