I think (arr1 == arr2).all() looks pretty pretty. But you can use:
numpy.allclose(arr1, arr2)
but itβs not exactly the same.
An alternative is almost the same as your example:
numpy.alltrue(arr1 == arr2)
Note that scipy.array is actually a numpy.array reference. This makes it easier to find documentation.
SiggyF Jul 21 '10 at 19:34 2010-07-21 19:34
source share