numpy.ravel_multi_index
- numpy.ravel_multi_index(multi_index, dims, mode='raise', order='C')
Converts a tuple of index arrays into an array of flat indices, applying boundary modes to the multi-index.
- Parameters:
- multi_index : tuple of array_like
A tuple of integer arrays, one array for each dimension.