For example, I have a NumPy array:
arr = np.array([1, 2, -1, 1, 2])
and I want to say
np.any(arr<0)
How many elements will np check before returning True?
(1) If short-cut evaluation is available, it should be 3, because as long as it sees "-1", it will return immediately return True.
(2) If short-cut evaluation is not available, it should check 5 times, because all elements would be checked.
Which one is correct?