8000 DOC: zeros, empty, and ones now have consistent docstrings by NelleV · Pull Request #10679 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: zeros, empty, and ones now have consistent docstrings #10679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions numpy/add_newdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,10 +845,11 @@ def luf(lamdaexpr, *args, **kwargs):
Parameters
----------
shape : int or tuple of int
Shape of the empty array
Shape of the empty array, e.g., ``(2, 3)`` or ``2``.
dtype : data-type, optional
Desired output data-type.
order : {'C', 'F'}, optional
Desired output data-type for the array, e.g, `numpy.int8`. Default is
`numpy.float64`.
order : {'C', 'F'}, optional, default: 'C'
Whether to store multi-dimensional data in row-major
(C-style) or column-major (Fortran-style) order in
memory.
Expand Down Expand Up @@ -965,14 +966,15 @@ def luf(lamdaexpr, *args, **kwargs):

Parameters
----------
shape : int or sequence of ints
shape : int or tuple of ints
Shape of the new array, e.g., ``(2, 3)`` or ``2``.
dtype : data-type, optional
The desired data-type for the array, e.g., `numpy.int8`. Default is
`numpy.float64`.
order : {'C', 'F'}, optional
Whether to store multidimensional data in C- or Fortran-contiguous
(row- or column-wise) order in memory.
order : {'C', 'F'}, optional, default: 'C'
Whether to store multi-dimensional data in row-major
(C-style) or column-major (Fortran-style) order in
memory.

Returns
-------
Expand Down
7 changes: 4 additions & 3 deletions numpy/core/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ def ones(shape, dtype=None, order='C'):
dtype : data-type, optional
The desired data-type for the array, e.g., `numpy.int8`. Default is
`numpy.float64`.
order : {'C', 'F'}, optional
Whether to store multidimensional data in C- or Fortran-contiguous
(row- or column-wise) order in memory.
order : {'C', 'F'}, optional, default: C
Whether to store multi-dimensional data in row-major
(C-style) or column-major (Fortran-style) order in
memory.

Returns
-------
Expand Down
0