summaryrefslogtreecommitdiff
path: root/scipy/base/numeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r--scipy/base/numeric.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py
index d2c98c573..931a6cfff 100644
--- a/scipy/base/numeric.py
+++ b/scipy/base/numeric.py
@@ -68,8 +68,7 @@ def zeros_like(a):
use empty_like(), which is faster as it only allocates memory."""
a = asarray(a)
- return a.__array_wrap__(zeros(a.shape,a.dtype,
- a.flags['FORTRAN'] and a.ndim > 1))
+ return zeros(a.shape,a.dtype, a.flags['FNC'])
def empty_like(a):
"""Return an empty (uninitialized) array of the shape and typecode of a.
@@ -78,9 +77,8 @@ def empty_like(a):
your array to be initialized, you should use zeros_like().
"""
- asarray(a)
- return a.__array_wrap__(empty(a.shape,a.dtype,
- a.flags['FORTRAN'] and a.ndim > 1))
+ a = asarray(a)
+ return empty(a.shape,a.dtype, a.flags['FNC'])
# end Fernando's utilities