|
Public Member Functions |
|
| mdp_site () |
| | value of the mdp_site in local coordinate
|
| | mdp_site (const mdp_lattice &a) |
|
void | on (const mdp_lattice &a) |
|
mdp_lattice & | lattice () |
| | returns by reference the lattice the site lives on
|
|
| mdp_site (long i, mdp_lattice *ptr2) |
|
| mdp_site (const mdp_site &x) |
|
mdp_site | operator= (long i) |
|
mdp_site | operator= (mdp_site x) |
|
int | operator== (mdp_site x) |
|
int | operator!= (mdp_site x) |
|
void | start (int np=0) |
|
void | next () |
| int | is_in () |
| int | is_here () |
|
int | parity () |
| | returns the parity EVEN or ODD of the site
|
| int | is_in_boundary () |
| long | local_index () |
|
long | global_index () |
| | returns the global (unique) index of the site
|
|
void | set_local (long idx2) |
| | sets the site by its local index (dangerous)
|
|
void | set_global (long idx_gl) |
| | sets the site by its global index
|
|
mdp_site | operator+ (int mu) |
| | returns the site shifted forward in direction mu=(0...ndim-1)
|
|
mdp_site | operator- (int mu) |
| | returns the site shifted backwards in direction mu=(0...ndim-1)
|
| mdp_site | hop (int i, int mu) |
|
mdp_site | operator= (mdp_vector v) |
| | sets the site to the coordinates stored in vector v
|
| mdp_site | operator+ (mdp_vector v) |
| mdp_site | operator- (mdp_vector v) |
|
int | operator() (int mu) |
| | returns mu coordinate of the site
|
|
void | operator= (int *x) |
| void | set (int x0, int x1=0, int x2=0, int x3=0, int x4=0, int x5=0, int x6=0, int x7=0, int x8=0, int x9=0) |
|
int | operator== (int *x) |
|
int | operator!= (int *x) |
|
int | is_equal (int x0, int x1=0, int x2=0, int x3=0, int x4=0, int x5=0, int x6=0, int x7=0, int x8=0, int x9=0) |
| | checks the site coordinates vs the coordinates passed as args
|
Public Attributes |
|
long | idx |
| | this points to the lattice for this field
|
Friends |
| long | site2binary (mdp_site x) |
| int | on_which_process (mdp_lattice &a, int x0=0, int x1=0, int x2=0, int x3=0, int x4=0, int x5=0, int x6=0, int x7=0, int x8=0, int x9=0) |
int box[]={10,10,10};
mdp_lattice lattice(3,box);
mdp_site x(lattice);
forallsites(x) cout << x << endl;
if(on_which_process(lattice,1,1,1)==ME) {
x.set(1,1,1);
cout << lattice.random(x).plain() << endl;
}