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. Parameter axis is supported with value either None or 0. Dimension of input array are supported to be less than 2. Otherwise the function will be executed sequentially on CPU. If repeats is tuple or list, should be len(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]