diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-29 00:52:06 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-29 00:52:06 +0000 |
commit | 4742ef06a5888264488fc250d40d7ad47b718cb2 (patch) | |
tree | e3134ef2977e4d191b8b0672757367235b5d0871 /scipy/base/numeric.py | |
parent | a8240d84ad9317a8c6e08e45c5cabdb7b562b6f5 (diff) | |
download | numpy-4742ef06a5888264488fc250d40d7ad47b718cb2.tar.gz |
a.flags returns fancy array-connected dictionary.
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r-- | scipy/base/numeric.py | 2 |
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 |