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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py
index b095ec800..e0ccf41dc 100644
--- a/scipy/base/numeric.py
+++ b/scipy/base/numeric.py
@@ -57,6 +57,7 @@ def zeros_like(a):
If you don't explicitly need the array to be zeroed, you should instead
use empty_like(), which is faster as it only allocates memory."""
+ a = asarray(a)
return zeros(a.shape,a.dtype,a.flags['FORTRAN'] and a.ndim > 1)
def empty_like(a):
@@ -66,6 +67,7 @@ def empty_like(a):
your array to be initialized, you should use zeros_like().
"""
+ asarray(a)
return empty(a.shape,a.dtype,a.flags['FORTRAN'] and a.ndim > 1)
# end Fernando's utilities