Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Field_F Class Reference

Wilson-type fermion field. More...

#include <field_F.h>

Inheritance diagram for Field_F:
Field

Public Member Functions

 Field_F (const int Nvol=CommonParameters::Nvol(), const int Nex=1)
 
Field_F clone () const
 
 Field_F (const Field &x)
 
void reset (int Nvol, int Nex)
 
Field_Foperator= (const Field_F &v)
 
int nc () const
 
int nc2 () const
 
int nd () const
 
double cmp_r (const int cc, const int s, const int site, const int e=0) const
 
double cmp_i (const int cc, const int s, const int site, const int e=0) const
 
void set_r (const int cc, const int s, const int site, const int e, const double re)
 
void set_i (const int cc, const int s, const int site, const int e, const double im)
 
void set_ri (const int cc, const int s, const int site, const int e, const double re, const double im)
 
Vec_SU_N vec (const int s, const int site, const int e=0) const
 
void set_vec (const int s, const int site, const int e, const Vec_SU_N &F)
 
void add_vec (const int s, const int site, const int e, const Vec_SU_N &F)
 
void clear_vec (const int s, const int site, const int e)
 
void xI ()
 
void Ix (const Field_F &w)
 
- 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

int myindex (const int c2, const int s, const int site, const int ex) const
 
void check ()
 check several assumptions for performance implementation. More...
 

Private Attributes

int m_Nc
 
int m_Nc2
 
int m_Nd
 

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

Wilson-type fermion field.

This class defines 4-spinor (in the case of Ndim=4) fermion field, which is mainly used by Wilson-type fermions. 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] mult_GMproj2 is generalized for Wilson_General. [21 Mar 2015 Y.Namekawa]

Definition at line 37 of file field_F.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file field_F.h.

Field_F::Field_F ( const Field x)
inline

Definition at line 71 of file field_F.h.

Member Function Documentation

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

Definition at line 142 of file field_F.h.

void Field_F::check ( )
private

check several assumptions for performance implementation.

Definition at line 25 of file field_F_imp.cpp.

void Field_F::clear_vec ( const int  s,
const int  site,
const int  e 
)
inline

Definition at line 150 of file field_F.h.

Field_F Field_F::clone ( ) const
inline

Definition at line 64 of file field_F.h.

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

Definition at line 100 of file field_F.h.

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

Definition at line 94 of file field_F.h.

void Field_F::Ix ( const Field_F w)
inline

Definition at line 186 of file field_F.h.

int Field_F::myindex ( const int  c2,
const int  s,
const int  site,
const int  ex 
) const
inlineprivate

Definition at line 45 of file field_F.h.

int Field_F::nc ( ) const
inline

Definition at line 89 of file field_F.h.

int Field_F::nc2 ( ) const
inline

Definition at line 90 of file field_F.h.

int Field_F::nd ( ) const
inline

Definition at line 91 of file field_F.h.

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

Definition at line 87 of file field_F.h.

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

Definition at line 80 of file field_F.h.

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

Definition at line 111 of file field_F.h.

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

Definition at line 106 of file field_F.h.

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

Definition at line 116 of file field_F.h.

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

Definition at line 134 of file field_F.h.

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

Definition at line 122 of file field_F.h.

void Field_F::xI ( )
inline

Definition at line 157 of file field_F.h.

Member Data Documentation

int Field_F::m_Nc
private

Definition at line 40 of file field_F.h.

int Field_F::m_Nc2
private

Definition at line 41 of file field_F.h.

int Field_F::m_Nd
private

Definition at line 42 of file field_F.h.


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