argmin returns one value for 2d array

33

In [9]: np.where(x == np.min(x))
#or
In [9]: divmod(x.argmin(), x.shape[1])

Comments

Submit
0 Comments