[Numpy-discussion] all elements equal

Brett Olsen brett.olsen at gmail.com
Mon Mar 5 15:01:52 EST 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.

~Brett



More information about the NumPy-Discussion mailing list