SyTen

◆ c2i()

Index syten::IPEPS::c2i ( Coord  coord,
int const  width,
int const  depth 
)

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:

9 A B
6 7 8
3 4 5
0 1 2

(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().

+ Here is the caller graph for this function: