|
numerics
|
Precomputed periodic-boundary neighbor arrays for a 2D square lattice. More...
#include <vector>Go to the source code of this file.
Classes | |
| struct | num::PBCLattice2D |
| 4-neighbor periodic-boundary index arrays for an N×N lattice. More... | |
Namespaces | |
| namespace | num |
Precomputed periodic-boundary neighbor arrays for a 2D square lattice.
PBCLattice2D builds up[i], dn[i], lt[i], rt[i] once from modulo arithmetic so the hot-path (Metropolis sweeps, BFS cluster detection) never calls %.
Flat layout: i = row * N + col, row and col in [0, N).
Definition in file pbc_lattice.hpp.