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
. Parameteraxis
is supported with value eitherNone
or0
. Dimension of input array are supported to be less than2
. Otherwise the function will be executed sequentially on CPU. Ifrepeats
istuple
orlist
, should belen(repeats) > 1
. Input array data types are limited by supported DPNP Data types.See also
numpy.tile
tile an array.Examples
>>> import dpnp as np >>> x = np.repeat(3, 4) >>> [i for i in x] [3, 3, 3, 3]