From 3075d726c2b1436aba82821f5a44385ded2920aa Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 18 Jul 2025 15:16:08 +0200 Subject: [PATCH] Small update in the examples of column_stack and dstack functions --- dpnp/dpnp_iface_manipulation.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index 3f991ebd6751..2806f621b5c6 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -1346,11 +1346,11 @@ def column_stack(tup): -------- >>> import dpnp as np >>> a = np.array((1, 2, 3)) - >>> b = np.array((2, 3, 4)) + >>> b = np.array((4, 5, 6)) >>> np.column_stack((a, b)) - array([[1, 2], - [2, 3], - [3, 4]]) + array([[1, 4], + [2, 5], + [3, 6]]) """ @@ -1778,18 +1778,18 @@ def dstack(tup): -------- >>> import dpnp as np >>> a = np.array((1, 2, 3)) - >>> b = np.array((2, 3, 4)) + >>> b = np.array((4, 5, 6)) >>> np.dstack((a, b)) - array([[[1, 2], - [2, 3], - [3, 4]]]) + array([[[1, 4], + [2, 5], + [3, 6]]]) >>> a = np.array([[1], [2], [3]]) - >>> b = np.array([[2], [3], [4]]) + >>> b = np.array([[4], [5], [6]]) >>> np.dstack((a, b)) - array([[[1, 2]], - [[2, 3]], - [[3, 4]]]) + array([[[1, 4]], + [[2, 5]], + [[3, 6]]]) """