fh_comm.lattice.SubLattice

class fh_comm.lattice.SubLattice(basis: ndarray)[source]

Bases: object

Sub-lattice specified by integer-valued basis vectors.

Methods

contains

Determine whether v is a point of the sub-lattice.

instantiate

Generate the list of points belonging to the sublattice within the region defined by cmin (inclusive) and cmax (exclusive).

nearest_center

Determine the sub-lattice point minimizing the squared distances to the points in vlist.

nearest_point

Determine the sub-lattice point closest to v.

contains(v) bool[source]

Determine whether v is a point of the sub-lattice.

instantiate(cmin: Sequence[int], cmax: Sequence[int])[source]

Generate the list of points belonging to the sublattice within the region defined by cmin (inclusive) and cmax (exclusive).

nearest_center(vlist)[source]

Determine the sub-lattice point minimizing the squared distances to the points in vlist.

nearest_point(v)[source]

Determine the sub-lattice point closest to v.