diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-22 21:15:22 -0800 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-02-22 21:15:22 -0800 |
commit | 17774a6d58b889b6b7a25d6af5b66f2148d47f41 (patch) | |
tree | 81001cb7f98a89dc816e4ce903d479af595993fb /numpy/core/numeric.py | |
parent | 665a00aec896344cfb12599add600f27a5f519d3 (diff) | |
parent | 436b521274a1b27a0211ad18857d779329ad11c7 (diff) | |
download | numpy-17774a6d58b889b6b7a25d6af5b66f2148d47f41.tar.gz |
Merge pull request #3009 from daveydave400/fix_zeros_like_doc
Added 'subok' keyword documentation to zeros_like and ones_like functions.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 8 |
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 ------- |