num::spatial::debug::verify_lattice_symmetry¶
Defined in header <spatial/debug.hpp>
template <class P>
requires periodic_neighbourhood_2d<P>
void verify_lattice_symmetry(
const P &lattice, std::source_location loc = std::source_location::current());
Verify that a periodic lattice's neighbour tables are mutually consistent.
Stepping up from a site and then down must return to it, and likewise left and right. A table built with the wrong modulus satisfies neither.