diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-02-01 20:34:56 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-02-01 20:34:56 +0000 |
commit | 4a56cabed8811301838d2bbc67482bbc8ae56135 (patch) | |
tree | bd22be2517edd18bb976f9d60a15a1b5dc73e06f /numpy/lib/ufunclike.py | |
parent | c1bcd900a33726ff05cab668bf03207a4e0614ca (diff) | |
download | numpy-4a56cabed8811301838d2bbc67482bbc8ae56135.tar.gz |
Allow matrices to pass through more functions.
Diffstat (limited to 'numpy/lib/ufunclike.py')
-rw-r--r-- | numpy/lib/ufunclike.py | 6 |
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: |