I want to achieve the same result with least complexity in python as
in MATLAB where
is a 2D numpy array.
For those who are not familiar with MATLAB,
or not equal to
Is there a function in python which returns the indexes of the elements:
Whose values fulfill a condition (elements which are != 0 in this case)
Which can directly be used as list index input for another array? (As
's result is being used as an input like this
has been used as list index input like this
and then min of the array
is being found out. In other words minimum value of the array is found out excluding the elements whose value is 0.