22 for (
int plane = lattice.
size(dir) - 2; plane >= 0; plane--) {
29#pragma hila safe_access(polyakov)
31 if (X.coordinate(dir) == plane) {
32 polyakov[X] = U[dir][X] * polyakov[X + dir];
39 onsites(
ALL)
if (X.coordinate(dir) == 0) {
40 ploop += trace(polyakov[X]);
44 return ploop / (lattice.
volume() / lattice.
size(dir));
The field class implements the standard methods for accessing Fields. Hilapp replaces the parity acce...
int size(Direction d) const
lattice.size() -> CoordinateVector or lattice.size(d) -> int returns the dimensions of the lattice,...
int64_t volume() const
lattice.volume() returns lattice volume Can be used inside onsites()-loops
Direction
Enumerator for direction that assigns integer to direction to be interpreted as unit vector.
constexpr Parity ALL
bit pattern: 011
Complex< double > measure_polyakov(const GaugeField< T > &U, Direction dir=Direction(NDIM - 1))
Measure Polyakov lines to direction dir.