8000 DOC : minor changes to linspace docstring by tacaswell · Pull Request #5359 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC : minor changes to linspace docstring #5359

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

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 4 additions & 2 deletions numpy/core/function_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
retstep : bool, optional
If True, return (`samples`, `step`), where `step` is the spacing
between samples.
dtype : dtype
dtype : dtype, optional
The type of the output array. If `dtype` is not given, infer the data
type from the other input arguments.

Expand All @@ -44,7 +44,9 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
There are `num` equally spaced samples in the closed interval
``[start, stop]`` or the half-open interval ``[start, stop)``
(depending on whether `endpoint` is True or False).
step : float (only if `retstep` is True)
step : float
Only returned if `retstep` is True

Size of spacing between samples.


Expand Down
0