[Numpy-discussion] all elements equal

Brett Olsen brett.olsen@gmail....
Mon Mar 5 14:01:52 CST 2012

> Another issue to watch out for is if the array is empty.  Technically
> speaking, that should be True, but some of the solutions offered so far
> would fail in this case.

Similarly, NaNs or Infs could cause problems:  they should signal as
False, but several of the solutions would return True.


More information about the NumPy-Discussion mailing list