You can use where :
a=np.random.random((100,100,100)) np.where(a==a.max()) (array([46]), array([62]), array([61]))
to get into one array:
np.hstack(np.where(a==a.max())) array([46, 62, 61])
and since the OP requested the tuple:
tuple(np.hstack(np.where(a==a.max()))) (46, 62, 61)
EDIT:
To get the indices of the largest sets of N , you can use the nlargest function from the heapq module:
N=3 np.where(a>=heapq.nlargest(3,a.flatten())[-1]) (array([46, 62, 61]), array([95, 85, 97]), array([70, 35, 2]))
source share