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

Even-odd site index. More...

#include <index_eo.h>

Public Member Functions

 Index_eo ()
 
int leo (const int y, const int z, const int t) const
 
int site (const int x2, const int y, const int z, const int t, const int ieo) const
 
int site (const int is, const int ieo) const
 
int site_up (const int x2, const int y, const int z, const int t, const int ieo) const
 
int site_xup (const int x2, const int y, const int z, const int t, const int ieo) const
 
int site_dn (const int x2, const int y, const int z, const int t, const int ieo) const
 
int site_xdn (const int x2, const int y, const int z, const int t, const int ieo) const
 
int siteh (const int x2, const int y, const int z, const int t) const
 
int siteh_up (const int x2, const int y, const int z, const int t, const int ieo) const
 
int siteh_xup (const int x2, const int y, const int z, const int t, const int ieo) const
 
int siteh_dn (const int x2, const int y, const int z, const int t, const int ieo) const
 
int siteh_xdn (const int x2, const int y, const int z, const int t, const int ieo) const
 
void convertField (Field &eo, const Field &lex)
 
void convertField (Field &eo, const Field &lex, const int ieo)
 
void reverseField (Field &lex, const Field &eo)
 
void reverseField (Field &lex, const Field &eo, const int ieo)
 
void splitField (Field &e, Field &o, const Field &eo)
 
void mergeField (Field &eo, const Field &e, const Field &o)
 

Private Attributes

int m_Nx
 
int m_Ny
 
int m_Nz
 
int m_Nt
 
int m_Nvol
 
int m_Nx2
 
int m_Nvol2
 
std::valarray< int > m_yzt_eo
 
std::valarray< int > m_Site_up
 
std::valarray< int > m_Site_dn
 
Index_lex m_index_lex
 
int m_node_eo
 
Bridge::VerboseLevel m_vl
 

Detailed Description

Even-odd site index.

This class defines even-odd site index. Only the site degree of freedom is concerned. Nx (x-extent inside a node) must be even in the present implementation. Coverting from and reverting to the lexical site index are implemented as member functions of this class. In present implementation, there is no superclass structure, and thus polymorphism is not available. Some of method names might be confusing; restructuring may be helpful. [25 Dec 2011 H.Matsufuru]

Definition at line 40 of file index_eo.h.

Constructor & Destructor Documentation

Index_eo::Index_eo ( )
inline

Definition at line 52 of file index_eo.h.

Member Function Documentation

void Index_eo::convertField ( Field eo,
const Field lex 
)

Definition at line 20 of file index_eo.cpp.

void Index_eo::convertField ( Field eo,
const Field lex,
const int  ieo 
)

Definition at line 50 of file index_eo.cpp.

int Index_eo::leo ( const int  y,
const int  z,
const int  t 
) const
inline

Definition at line 109 of file index_eo.h.

void Index_eo::mergeField ( Field eo,
const Field e,
const Field o 
)

Definition at line 171 of file index_eo.cpp.

void Index_eo::reverseField ( Field lex,
const Field eo 
)

Definition at line 112 of file index_eo.cpp.

void Index_eo::reverseField ( Field lex,
const Field eo,
const int  ieo 
)

Definition at line 81 of file index_eo.cpp.

int Index_eo::site ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 114 of file index_eo.h.

int Index_eo::site ( const int  is,
const int  ieo 
) const
inline

Definition at line 120 of file index_eo.h.

int Index_eo::site_dn ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 141 of file index_eo.h.

int Index_eo::site_up ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 125 of file index_eo.h.

int Index_eo::site_xdn ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 149 of file index_eo.h.

int Index_eo::site_xup ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 133 of file index_eo.h.

int Index_eo::siteh ( const int  x2,
const int  y,
const int  z,
const int  t 
) const
inline

Definition at line 157 of file index_eo.h.

int Index_eo::siteh_dn ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 179 of file index_eo.h.

int Index_eo::siteh_up ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 163 of file index_eo.h.

int Index_eo::siteh_xdn ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 187 of file index_eo.h.

int Index_eo::siteh_xup ( const int  x2,
const int  y,
const int  z,
const int  t,
const int  ieo 
) const
inline

Definition at line 171 of file index_eo.h.

void Index_eo::splitField ( Field e,
Field o,
const Field eo 
)

Definition at line 143 of file index_eo.cpp.

Member Data Documentation

Index_lex Index_eo::m_index_lex
private

Definition at line 47 of file index_eo.h.

int Index_eo::m_node_eo
private

Definition at line 48 of file index_eo.h.

int Index_eo::m_Nt
private

Definition at line 42 of file index_eo.h.

int Index_eo::m_Nvol
private

Definition at line 42 of file index_eo.h.

int Index_eo::m_Nvol2
private

Definition at line 43 of file index_eo.h.

int Index_eo::m_Nx
private

Definition at line 42 of file index_eo.h.

int Index_eo::m_Nx2
private

Definition at line 43 of file index_eo.h.

int Index_eo::m_Ny
private

Definition at line 42 of file index_eo.h.

int Index_eo::m_Nz
private

Definition at line 42 of file index_eo.h.

std::valarray<int> Index_eo::m_Site_dn
private

Definition at line 46 of file index_eo.h.

std::valarray<int> Index_eo::m_Site_up
private

Definition at line 45 of file index_eo.h.

Bridge::VerboseLevel Index_eo::m_vl
private

Definition at line 50 of file index_eo.h.

std::valarray<int> Index_eo::m_yzt_eo
private

Definition at line 44 of file index_eo.h.


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