Skip to content

num::pbc_lattice_2d

Defined in header <spatial/pbc_lattice.hpp>

struct pbc_lattice_2d;

4-neighbor periodic-boundary index arrays for an NxN lattice.

Members

member description
int N Side length; total sites = N*N
array<int> up
array<int> up, dn
array<int> up, dn, lt
array<int> up, dn, lt, rt up/dn = row +/-1, lt/rt = col +/-1 (PBC)
explicit pbc_lattice_2d(int N)