diff options
Diffstat (limited to 'numpy/lib/ufunclike.py')
-rw-r--r-- | numpy/lib/ufunclike.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/ufunclike.py b/numpy/lib/ufunclike.py index cf014e77d..a8c2c1e25 100644 --- a/numpy/lib/ufunclike.py +++ b/numpy/lib/ufunclike.py @@ -29,6 +29,7 @@ def isposinf(x, y=None): If y is an array, the result replaces the contents of y. """ if y is None: + x = asarray(x) y = empty(x.shape, dtype=nx.bool_) umath.logical_and(isinf(x), ~signbit(x), y) return y @@ -39,6 +40,7 @@ def isneginf(x, y=None): If y is an array, the result replaces the contents of y. """ if y is None: + x = asarray(x) y = empty(x.shape, dtype=nx.bool_) umath.logical_and(isinf(x), signbit(x), y) return y |