HILA
Loading...
Searching...
No Matches
SiteIndex Class Reference

Running index for locating sites on the lattice. More...

#include <site_index.h>

Public Member Functions

 SiteIndex (const CoordinateVector &cv)
 Construct from CoordinateVector.
 
CoordinateVector coordinates () const
 Convert to lattice coordinates.
 

Detailed Description

Running index for locating sites on the lattice.

The index is computed as x + nx*(y + ny*(z + nz*t) (in 4d) Used sometimes instead of CoordinateVector, smaller storage. Can be directly accessed by .value

Definition at line 17 of file site_index.h.

Constructor & Destructor Documentation

◆ SiteIndex()

SiteIndex::SiteIndex ( const CoordinateVector cv)
inline

Construct from CoordinateVector.

Assumes cv is a valid lattice coordinate, undefined otherwise

Definition at line 36 of file site_index.h.


The documentation for this class was generated from the following file: