Skip to main content

to_index

Method of Lattice.

to_index(const LatticeCoordinate coordinate) -> integer

Computes the linear index for the given coordinate. If the coordinate isn't in the lattice, throws an exception.

Parameters