If
From a hint here.
x
is multidimensional pylab array x.argmax()
returns the flat index (converts the multidimensional array into a flat vector before finding the max/min). The pylab function unravel_index
comes to our helppylab.unravel_index(x.argmax(), x.shape)
From a hint here.
Searched around for a while to find an answer to this question. This was exactly what I needed. Thanks for posting.
ReplyDeleteThank you!!!!!
ReplyDeleteThanks! This was a great help :)
ReplyDelete