triqs.mesh.meshes.MeshCycLat.is_index_valid
- MeshCycLat.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 unit cell/lattice point in the supercell.
- Parameters:
- n[int, len = 3]
Index \(\mathbf{n}\) to check.
- Returns:
- bool
True if \(0 \leq n_i < N_i \; \forall i\), false otherwise.