triqs.mesh.meshes.MeshCycLat.to_index

MeshCycLat.to_index()

Dispatched C++ function(s).

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

Map a data index \(d \in \{0, 1, \ldots, N-1\}\) to the corresponding index \(\mathbf{n}(d)\) .

Parameters:
dint

Data index \(d\) to map.

Returns:
[int, len = 3]

Index \(\mathbf{n}(d) = (\lfloor d / s_1 \rfloor, \lfloor (d \mod s_1) / s_2 \rfloor, (d \mod s_1) \mod s_2 )\).