You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns evenly spaced values within the half-open interval `[start, stop)` as a one-dimensional array.
18
18
@@ -33,11 +33,11 @@ This function cannot guarantee that the interval does not include the `stop` val
33
33
34
34
-**step**: _Union\[ int, float ]_
35
35
36
-
- the distance between two adjacent elements (`out[i+1] - out[i]`). Default: `1`.
36
+
- the distance between two adjacent elements (`out[i+1] - out[i]`). Must not be `0`; may be negative, this results in an empty array if `stop >= start`. Default: `1`.
37
37
38
38
-**dtype**: _Optional\[<dtype>]_
39
39
40
-
- output array data type. If `dtype` is `None`, the output array data type must be the default floating-point data type. Default: `None`.
40
+
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `start`, `stop` and `step`. If those are all integers, the output array dtype must be the default integer dtype; if one or more have type `float`, then the output array dtype must be the default floating-point data type. Default: `None`.
41
41
42
42
-**device**: _Optional\[<device>]_
43
43
@@ -47,7 +47,7 @@ This function cannot guarantee that the interval does not include the `stop` val
47
47
48
48
-**out**: _<array>_
49
49
50
-
- a one-dimensional array containing evenly spaced values. The length of the output array must be `ceil((stop-start)/step)`.
50
+
- a one-dimensional array containing evenly spaced values. The length of the output array must be `ceil((stop-start)/step)` if `stop - start` and `step` have the same sign, and length 0 otherwise.
0 commit comments