summaryrefslogtreecommitdiff
path: root/numpy/lib/ufunclike.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-02-01 20:34:56 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-02-01 20:34:56 +0000
commit4a56cabed8811301838d2bbc67482bbc8ae56135 (patch)
treebd22be2517edd18bb976f9d60a15a1b5dc73e06f /numpy/lib/ufunclike.py
parentc1bcd900a33726ff05cab668bf03207a4e0614ca (diff)
downloadnumpy-4a56cabed8811301838d2bbc67482bbc8ae56135.tar.gz
Allow matrices to pass through more functions.
Diffstat (limited to 'numpy/lib/ufunclike.py')
-rw-r--r--numpy/lib/ufunclike.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/ufunclike.py b/numpy/lib/ufunclike.py
index 509756a1f..cf014e77d 100644
--- a/numpy/lib/ufunclike.py
+++ b/numpy/lib/ufunclike.py
@@ -5,13 +5,13 @@ storing results in an output array.
__all__ = ['fix', 'isneginf', 'isposinf', 'log2']
import numpy.core.numeric as nx
-from numpy.core.numeric import asarray, empty, isinf, signbit
+from numpy.core.numeric import asarray, empty, isinf, signbit, asanyarray
import numpy.core.umath as umath
def fix(x, y=None):
""" Round x to nearest integer towards zero.
"""
- x = asarray(x)
+ x = asanyarray(x)
if y is None:
y = nx.floor(x)
else:
@@ -49,7 +49,7 @@ def log2(x, y=None):
If y is an array, the result replaces the contents of y.
"""
- x = asarray(x)
+ x = asanyarray(x)
if y is None:
y = umath.log(x)
else: