diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-05-13 10:24:51 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-05-13 10:24:51 -0500 |
commit | 92503a5cb8bf52321043294b3b8b8811dd1eaee8 (patch) | |
tree | d0519d499df27b5c504e0ee296faefb8edf92112 /numpy/core/numeric.py | |
parent | 6dc709a5aa0b17b5a74b7456d7cbd2580d9063f6 (diff) | |
download | numpy-92503a5cb8bf52321043294b3b8b8811dd1eaee8.tar.gz |
Make sure comparison result is array
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index a20bf3dcd..a187d7c5b 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2137,7 +2137,7 @@ def array_equal(a1, a2): return False if a1.shape != a2.shape: return False - return bool((a1 == a2).all()) + return bool(asarray(a1 == a2).all()) def array_equiv(a1, a2): """ |