I began with python and I need to find, in a matrix, the next higher number from a given number. Actually the value of the number is not interesting but I need its location.
For example, if my matrix is
a = ([0.14, 0.93, 0.2], [0.1, 0.8, 0.55])
and my given number is 0.5
How would I do to have (3, 2)
for i and j value of 0.55 which is the next higher number from 0.5?