dpnp.arange
- dpnp.arange(start, stop=None, step=1, dtype=None)[source]
Returns an array with evenly spaced values within a given interval.
For full documentation refer to
numpy.arange
.- Returns
arange – The 1-D array of range values.
- Return type
Limitations
Parameter
start
is supported as integer only. Parametersstop
andstep
are supported as either integer orNone
. Otherwise the function will be executed sequentially on CPU.See also
dpnp.linspace
Evenly spaced numbers with careful handling of endpoints.
Examples
>>> import dpnp as np >>> [i for i in np.arange(3)] [0, 1, 2] >>> [i for i in np.arange(3, 7)] [3, 4, 5, 6] >>> [i for i in np.arange(3, 7, 2)] [3, 5]