cupy.arange¶
-
cupy.
arange
(start, stop=None, step=1, dtype=None)[source]¶ Returns an array with evenly spaced values within a given interval.
Values are generated within the half-open interval [start, stop). The first three arguments are mapped like the
range
built-in function, i.e. start and step are optional.- Parameters
start – Start of the interval.
stop – End of the interval.
step – Step width between each pair of consecutive values.
dtype – Data type specifier. It is inferred from other arguments by default.
- Returns
The 1-D array of range values.
- Return type
See also