Does Numpy have a function for quick search of element in 2D array and return its indexes? Mean for example:
a=54
array([[ 0, 1, 2, 3],
[ 4, 5, 54, 7],
[ 8, 9, 10, 11]])
So equal value will be array[1][2]
.
Of course I can make it using simple loops- but I want something similar to:
if 54 in arr