summaryrefslogtreecommitdiff
path: root/scipy/base/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-29 00:52:06 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-29 00:52:06 +0000
commit4742ef06a5888264488fc250d40d7ad47b718cb2 (patch)
treee3134ef2977e4d191b8b0672757367235b5d0871 /scipy/base/numeric.py
parenta8240d84ad9317a8c6e08e45c5cabdb7b562b6f5 (diff)
downloadnumpy-4742ef06a5888264488fc250d40d7ad47b718cb2.tar.gz
a.flags returns fancy array-connected dictionary.
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