What is the FASTEST (not simplest) way to compare arrays?
Mostly i will have totally different arrays, that can be marked as unequal after checking the first element.
(a == b).all() # first method
numpy.array_equal(a, b) # second method
This two methods have similar time of execution, so something's not OK. What is the method which terminates just after encountering first mismatch?
This is NOT duplicate of this question: Comparing two numpy arrays for equality, element-wise