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 index is forwarded to the to_data_index method 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.