diff options
author | Jake VanderPlas <jakevdp@gmail.com> | 2017-12-12 06:59:47 -0800 |
---|---|---|
committer | Jake VanderPlas <jakevdp@gmail.com> | 2017-12-12 06:59:47 -0800 |
commit | a3f39b59cfbf897cd37c527ca1260d67423b0ae2 (patch) | |
tree | 0753927b06c8244cb56c601796ce4ea619299839 /numpy/add_newdocs.py | |
parent | 8032cf4762008155fca610fb61092e6c9ecae98b (diff) | |
download | numpy-a3f39b59cfbf897cd37c527ca1260d67423b0ae2.tar.gz |
DOC: change 'a'->'prototype' in empty_like docs
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index d0c7c6104..740396ff3 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -823,24 +823,24 @@ add_newdoc('numpy.core.multiarray', 'empty', add_newdoc('numpy.core.multiarray', 'empty_like', """ - empty_like(a, dtype=None, order='K', subok=True) + empty_like(prototype, dtype=None, order='K', subok=True) Return a new array with the same shape and type as a given array. Parameters ---------- - a : array_like - The shape and data-type of `a` define these same attributes of the - returned array. + prototype : array_like + The shape and data-type of `prototype` define these same attributes + of the returned array. dtype : data-type, optional Overrides the data type of the result. .. versionadded:: 1.6.0 order : {'C', 'F', 'A', or 'K'}, optional 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 - as possible. + 'F' means F-order, 'A' means 'F' if ``prototype`` is Fortran + contiguous, 'C' otherwise. 'K' means match the layout of ``prototype`` + as closely as possible. .. versionadded:: 1.6.0 subok : bool, optional. @@ -852,7 +852,7 @@ add_newdoc('numpy.core.multiarray', 'empty_like', ------- out : ndarray Array of uninitialized (arbitrary) data with the same - shape and type as `a`. + shape and type as `prototype`. See Also -------- |