summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 187296efe..dce617846 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -62,7 +62,7 @@ ufunc = type(sin)
# originally from Fernando Perez's IPython
-def zeros_like(a, dtype=None, order='K'):
+def zeros_like(a, dtype=None, order='K', subok=True):
"""
Return an array of zeros with the same shape and type as a given array.
@@ -112,7 +112,7 @@ def zeros_like(a, dtype=None, order='K'):
array([ 0., 0., 0.])
"""
- res = empty_like(a, dtype=dtype, order=order)
+ res = empty_like(a, dtype=dtype, order=order, subok=subok)
res.fill(0)
return res