Given a coordinate, a unit cell width, and a unit cell depth, calculates the linear offset of the (potentially re-mapped) site in the unit cell.
Order of sites is:
(with A ~ 10
and B ~ 11
).
References SYTEN_ASSERT.
Referenced by syten::IPEPS::Lattice::c2i(), syten::IPEPS::State::c2i(), syten::Pyten::init_ipeps_lattice(), syten::Pyten::init_ipeps_state(), and syten::Pyten::init_ipeps_util().