It seems that this can be done. Note
argmax=lambda A:np.unravel_index(np.array(A).argmax(), np.array(A).shape) argmin=lambda A:np.unravel_index(np.array(A).argmin(), np.array(A).shape)
To use it, use ```argmax (list) `` `.
Recommended Posts