ncdl.LatticeTensor.on_lattice

LatticeTensor.on_lattice(p: array) bool

Tests if a point, represented as an integer numpy array is on the given lattice.

Parameters:

p – an integer numpy array with dimension s.

Returns:

True if the point is on a lattice, False otherwise.