From 436b521274a1b27a0211ad18857d779329ad11c7 Mon Sep 17 00:00:00 2001 From: daveydave400 Date: Fri, 22 Feb 2013 12:38:42 -0600 Subject: Added 'subok' keyword documentation to zeros_like and ones_like functions. --- numpy/core/numeric.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'numpy/core/numeric.py') 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 ------- -- cgit v1.2.1