We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parentse4c861f +14a3dca commitf546b8bCopy full SHA for f546b8b
numpy/core/function_base.py
@@ -32,7 +32,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
32
retstep : bool, optional
33
If True, return (`samples`, `step`), where `step` is the spacing
34
between samples.
35
- dtype : dtype
+ dtype : dtype, optional
36
The type of the output array. If `dtype` is not given, infer the data
37
type from the other input arguments.
38
@@ -44,7 +44,9 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
44
There are `num` equally spaced samples in the closed interval
45
``[start, stop]`` or the half-open interval ``[start, stop)``
46
(depending on whether `endpoint` is True or False).
47
- step : float (only if `retstep` is True)
+ step : float
48
+ Only returned if `retstep` is True
49
+
50
Size of spacing between samples.
51
52