triqs.mesh.mesh_product.MeshProduct.to_data_index
- MeshProduct.to_data_index(index)[source]
Convert a tuple of per-factor indices to a tuple of data indices.
Each component of
indexis forwarded to theto_data_indexmethod of the corresponding factor mesh.- Parameters:
- indexiterable
One mesh-native index per factor mesh, in the order of
components.
- Returns:
- generator
Generator yielding the per-factor data index of each component, in the same order.