triqs.mesh.meshes.MeshBrZone.is_index_valid

MeshBrZone.is_index_valid()

Dispatched C++ function(s).

[1] (n: [int, len = 3])
  -> bool

Check if an index \(\mathbf{n}\) is valid, i.e. corresponds to a \(\mathbf{k}^\mathbf{n}\) in the first BZ.

Parameters:
n[int, len = 3]

Index \(\mathbf{n}\) to check.

Returns:
bool

True if \(0 \leq n_i < N_i \; \forall i\), false otherwise.