Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

argmin returns one value for 2d array

In [9]: np.where(x == np.min(x))
#or
In [9]: divmod(x.argmin(), x.shape[1])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #argmin #returns #array
ADD COMMENT
Topic
Name
8+5 =