[Numpy-discussion] short circuit != ?
Wed Oct 27 08:32:20 CDT 2010
how about np.any(a!=b) ??
On 10/27/2010 12:25 PM, Neal Becker wrote:
> Is there a way to get a short circuit != ?
> That is, compare 2 arrays but stop as soon as the first element comparison
> I'm assuming that np.all (a != b) will _not_ do this, but will first compare
> all elements.
> NumPy-Discussion mailing list
More information about the NumPy-Discussion