dpnp.repeat
- dpnp.repeat(x1, repeats, axis=None)[source]
Repeat elements of an array.
For full documentation refer to
numpy.repeat.Limitations
Input array is supported as
dpnp.ndarray. Parameteraxisis supported with value eitherNoneor0. Dimension of input array are supported to be less than2. Otherwise the function will be executed sequentially on CPU. Ifrepeatsistupleorlist, should belen(repeats) > 1. Input array data types are limited by supported DPNP Data types.See also
numpy.tiletile an array.Examples
>>> import dpnp as np >>> x = np.repeat(3, 4) >>> [i for i in x] [3, 3, 3, 3]