summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authordaveydave400 <dhoese@gmail.com>2013-02-22 12:38:42 -0600
committerdaveydave400 <dhoese@gmail.com>2013-02-22 12:38:42 -0600
commit436b521274a1b27a0211ad18857d779329ad11c7 (patch)
tree81001cb7f98a89dc816e4ce903d479af595993fb /numpy/core/numeric.py
parent665a00aec896344cfb12599add600f27a5f519d3 (diff)
downloadnumpy-436b521274a1b27a0211ad18857d779329ad11c7.tar.gz
Added 'subok' keyword documentation to zeros_like and ones_like
functions.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 521001575..4c5651c3a 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -81,6 +81,10 @@ def zeros_like(a, dtype=None, order='K', subok=True):
'F' means F-order, 'A' means 'F' if `a` is Fortran contiguous,
'C' otherwise. 'K' means match the layout of `a` as closely
as possible.
+ subok : bool, optional.
+ If True, then the newly created array will use the sub-class
+ type of 'a', otherwise it will be a base-class array. Defaults
+ to True.
Returns
-------
@@ -167,6 +171,10 @@ def ones_like(a, dtype=None, order='K', subok=True):
'F' means F-order, 'A' means 'F' if `a` is Fortran contiguous,
'C' otherwise. 'K' means match the layout of `a` as closely
as possible.
+ subok : bool, optional.
+ If True, then the newly created array will use the sub-class
+ type of 'a', otherwise it will be a base-class array. Defaults
+ to True.
Returns
-------