[Numpy-discussion] short circuit != ?

Neal Becker ndbecker2 at gmail.com
Wed Oct 27 06:25:26 EDT 2010


Is there a way to get a short circuit != ?

That is, compare 2 arrays but stop as soon as the first element comparison 
fails?

I'm assuming that np.all (a != b) will _not_ do this, but will first compare 
all elements.




More information about the NumPy-Discussion mailing list