From f4445fe508dc55bbfd1588c13c79041e8ec8b442 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 23 Jun 2026 15:29:12 +0200 Subject: [PATCH] Add element-wise repeat example --- dpnp/dpnp_iface_manipulation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index a8b2fc931dec..8af7adb2fd52 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -2813,6 +2813,10 @@ def repeat(a, repeats, axis=None): >>> np.repeat(x, 4) array([3, 3, 3, 3]) + >>> x = np.array([4, 5, 6]) + >>> np.repeat(x, [1, 2, 3]) + array([4, 5, 5, 6, 6, 6]) + >>> x = np.array([[1, 2], [3, 4]]) >>> np.repeat(x, 2) array([1, 1, 2, 2, 3, 3, 4, 4])