Bridge++  Version 1.4.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 Nx
 
int Ny
 
int Nz
 
int Nt
 
int Nvol
 
int Nx2
 
int Nvol2
 
std::valarray< int > Leo
 
std::valarray< int > Site_up
 
std::valarray< int > 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 39 of file index_eo.h.

Constructor & Destructor Documentation

Index_eo::Index_eo ( )
inline

Definition at line 51 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 112 of file index_eo.h.

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

Definition at line 168 of file index_eo.cpp.

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

Definition at line 110 of file index_eo.cpp.

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

Definition at line 80 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 117 of file index_eo.h.

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

Definition at line 123 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 144 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 128 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 152 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 136 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 160 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 182 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 166 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 190 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 174 of file index_eo.h.

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

Definition at line 140 of file index_eo.cpp.

Member Data Documentation

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

Definition at line 43 of file index_eo.h.

Index_lex Index_eo::m_index_lex
private

Definition at line 46 of file index_eo.h.

int Index_eo::m_node_eo
private

Definition at line 47 of file index_eo.h.

Bridge::VerboseLevel Index_eo::m_vl
private

Definition at line 49 of file index_eo.h.

int Index_eo::Nt
private

Definition at line 41 of file index_eo.h.

int Index_eo::Nvol
private

Definition at line 41 of file index_eo.h.

int Index_eo::Nvol2
private

Definition at line 42 of file index_eo.h.

int Index_eo::Nx
private

Definition at line 41 of file index_eo.h.

int Index_eo::Nx2
private

Definition at line 42 of file index_eo.h.

int Index_eo::Ny
private

Definition at line 41 of file index_eo.h.

int Index_eo::Nz
private

Definition at line 41 of file index_eo.h.

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

Definition at line 45 of file index_eo.h.

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

Definition at line 44 of file index_eo.h.


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