Hi All,
I have a following model problem. Let i have a array
>>> x
array([[1, 2, 3, 4, 5],
       [6, 7, 8, 7, 6],
       [1, 2, 3, 4, 5]])

suppose i apply some cond on it.
>>> cond= x>5
>>> x[cond]
array([6, 7, 8, 7, 6])

Now, i want to argmax on this
>>> max=argmax(x[cond])
>>> max
2
>>> x[cond][max]
8
Now , I want to get the index of this element in x. How to acheive
this. In real situation x will be huge.

Thanks,
Shailendra
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to