def argmax(a): """ Return unravelled index of the maximum param: a: array to be searched """ return numpy.unravel_index(a.argmax(), a.shape)