diff options
author | Frederic <nouiz@nouiz.org> | 2012-09-26 14:44:23 -0400 |
---|---|---|
committer | Frederic <nouiz@nouiz.org> | 2012-09-26 14:47:38 -0400 |
commit | c006f6195090f0524ca0510f9d7f716747d8b3d5 (patch) | |
tree | 0a04324d58a8180cba8b0765460bc216402fd049 /numpy/core/numeric.py | |
parent | 4134859a39ac6d8f292b3469c4f399827eaf4578 (diff) | |
download | numpy-c006f6195090f0524ca0510f9d7f716747d8b3d5.tar.gz |
Add doc to {empty,zeros,ones}_like that tell in witch version their dtype and order parameter was added
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 45b998b61..5f0474d3e 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -75,8 +75,10 @@ def zeros_like(a, dtype=None, order='K', subok=True): The shape and data-type of `a` define these same attributes of the returned array. dtype : data-type, optional + .. versionadded:: 1.6.0 Overrides the data type of the result. order : {'C', 'F', 'A', or 'K'}, optional + .. versionadded:: 1.6.0 Overrides the memory layout of the result. 'C' means C-order, 'F' means F-order, 'A' means 'F' if `a` is Fortran contiguous, 'C' otherwise. 'K' means match the layout of `a` as closely @@ -161,8 +163,10 @@ def ones_like(a, dtype=None, order='K', subok=True): The shape and data-type of `a` define these same attributes of the returned array. dtype : data-type, optional + .. versionadded:: 1.6.0 Overrides the data type of the result. order : {'C', 'F', 'A', or 'K'}, optional + .. versionadded:: 1.6.0 Overrides the memory layout of the result. 'C' means C-order, 'F' means F-order, 'A' means 'F' if `a` is Fortran contiguous, 'C' otherwise. 'K' means match the layout of `a` as closely |