enumerate# caput.mpiarray.MPIArray.enumerate(axis: int) → collections.abc.Iterator[tuple[int, int]][source]# Helper for enumerating over a given axis. Parameters: axisintAxis to enumerate over. Returns: enumeratorenumerateAn enumerator which returns the local index into the array and the global index it corresponds to.