summaryrefslogtreecommitdiff
path: root/scipy/base/function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/function_base.py')
-rw-r--r--scipy/base/function_base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scipy/base/function_base.py b/scipy/base/function_base.py
index db6d703e4..1171da49a 100644
--- a/scipy/base/function_base.py
+++ b/scipy/base/function_base.py
@@ -553,7 +553,7 @@ def nanmin(x,axis=-1):
"""
y = array(x)
if not issubclass(y.dtype, _nx.integer):
- y[isnan(x)] = nx.inf
+ y[isnan(x)] = _nx.inf
return y.min(axis)
def nanargmin(x,axis=-1):
@@ -561,7 +561,7 @@ def nanargmin(x,axis=-1):
"""
y = array(x)
if not issubclass(y.dtype, _nx.integer):
- y[isnan(x)] = nx.inf
+ y[isnan(x)] = _nx.inf
return y.argmin(axis)
def nanmax(x,axis=-1):
@@ -569,7 +569,7 @@ def nanmax(x,axis=-1):
"""
y = array(x)
if not issubclass(y.dtype, _nx.integer):
- y[isnan(x)] = -nx.inf
+ y[isnan(x)] = -_nx.inf
return y.max(axis)
def nanargmax(x,axis=-1):
@@ -577,7 +577,7 @@ def nanargmax(x,axis=-1):
"""
y = array(x)
if not issubclass(y.dtype, _nx.integer):
- y[isnan(x)] = -nx.inf
+ y[isnan(x)] = -_nx.inf
return y.argmax(axis)
def disp(mesg, device=None, linefeed=1):