Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf546b8b

Browse files
committed
Merge pull request#5359 from tacaswell/linspace_doc
DOC : minor changes to linspace docstring
2 parentse4c861f +14a3dca commitf546b8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎numpy/core/function_base.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
3232
retstep : bool, optional
3333
If True, return (`samples`, `step`), where `step` is the spacing
3434
between samples.
35-
dtype : dtype
35+
dtype : dtype, optional
3636
The type of the output array. If `dtype` is not given, infer the data
3737
type from the other input arguments.
3838
@@ -44,7 +44,9 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
4444
There are `num` equally spaced samples in the closed interval
4545
``[start, stop]`` or the half-open interval ``[start, stop)``
4646
(depending on whether `endpoint` is True or False).
47-
step : float (only if `retstep` is True)
47+
step : float
48+
Only returned if `retstep` is True
49+
4850
Size of spacing between samples.
4951
5052

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp