Go to the documentation of this file.
14 #ifndef FIELD_F_INCLUDED
15 #define FIELD_F_INCLUDED
45 int myindex(
const int c2,
const int s,
const int site,
const int ex)
94 double cmp_r(
const int cc,
const int s,
const int site,
const int e = 0)
100 double cmp_i(
const int cc,
const int s,
const int site,
const int e = 0)
106 void set_r(
const int cc,
const int s,
const int site,
const int e,
const double re)
111 void set_i(
const int cc,
const int s,
const int site,
const int e,
const double im)
116 void set_ri(
const int cc,
const int s,
const int site,
const int e,
const double re,
const double im)
126 for (
int cc = 0; cc <
m_Nc; ++cc) {
136 for (
int cc = 0; cc <
m_Nc; ++cc) {
144 for (
int cc = 0; cc <
m_Nc; ++cc) {
150 void clear_vec(
const int s,
const int site,
const int e)
152 for (
int cc = 0; cc <
m_Nc2; ++cc) {
void mult_GMproj(Field_F &y, const int pm, const GammaMatrix &gm, const Field_F &x)
projection with gamma matrix: (1 \pm gamma)/2
void set_i(const int cc, const int s, const int site, const int e, const double im)
size_t myindex(const int jin, const int site, const int jex) const
void set_vec(const int s, const int site, const int e, const Vec_SU_N &F)
Common parameter class: provides parameters as singleton.
double cmp_i(const int cc, const int s, const int site, const int e=0) const
void mult_GM(Field_F &y, const GammaMatrix &gm, const Field_F &x)
gamma matrix multiplication
Vec_SU_N vec(const int s, const int site, const int e=0) const
Field_F & operator=(const Field_F &v)
void set_ri(const int cc, const int s, const int site, const int e, const double re, const double im)
friend void copy(Field &y, const Field &x)
copy(y, x): y = x
void add_vec(const int s, const int site, const int e, const Vec_SU_N &F)
void set(const int c, const double re, const double im)
void mult_Field_Gd(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
double i(const int c) const
void check()
check several assumptions for performance implementation.
int myindex(const int c2, const int s, const int site, const int ex) const
void mult_GMproj2(Field_F &y, const int pm, const GammaMatrix &gm, const Field_F &x)
projection with gamma matrix: (1 \pm gamma)
void multadd_Field_Gn(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2, const double a)
void mult_iGM(Field_F &y, const GammaMatrix &gm, const Field_F &x)
gamma matrix multiplication (i is multiplied)
double cmp_r(const int cc, const int s, const int site, const int e=0) const
Field_F(const int Nvol=CommonParameters::Nvol(), const int Nex=1)
void reset(const int Nin, const int Nvol, const int Nex, const element_type cmpl=Element_type::COMPLEX)
std::valarray< double > field
void mult_Field_Gn(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
Wilson-type fermion field.
void multadd_Field_Gd(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2, const double a)
void set_r(const int cc, const int s, const int site, const int e, const double re)
Container of Field-type object.
void clear_vec(const int s, const int site, const int e)
double r(const int c) const
void reset(int Nvol, int Nex)