triqs.mesh.meshes.MeshBrZone.closest_index

MeshBrZone.closest_index()

Dispatched C++ function(s).

[1] (k: ndarray[float, 1])
  -> [int, len = 3]

Map a given \(\mathbf{k}\)-vector or expression to the closest \(\mathbf{k}^{\mathbf{n}}\) in the first BZ and return its index \(\mathbf{n}\).

Parameters:
kndarray[float, 1]

\(\mathbf{k}\)-vector or expression to map.

Returns:
[int, len = 3]

Index \(\mathbf{n}\) of the closest \(\mathbf{k}^{\mathbf{n}}\) in the first BZ.