Skip to content

Commit 81870b7

Browse files
authored
Slightly update the examples in dpnp.column_stack and dpnp.dstack (#2531)
The PR updates the examples to make it a bit clear.
1 parent 4901cde commit 81870b7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

dpnp/dpnp_iface_manipulation.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,11 +1346,11 @@ def column_stack(tup):
13461346
--------
13471347
>>> import dpnp as np
13481348
>>> a = np.array((1, 2, 3))
1349-
>>> b = np.array((2, 3, 4))
1349+
>>> b = np.array((4, 5, 6))
13501350
>>> np.column_stack((a, b))
1351-
array([[1, 2],
1352-
[2, 3],
1353-
[3, 4]])
1351+
array([[1, 4],
1352+
[2, 5],
1353+
[3, 6]])
13541354
13551355
"""
13561356

@@ -1778,18 +1778,18 @@ def dstack(tup):
17781778
--------
17791779
>>> import dpnp as np
17801780
>>> a = np.array((1, 2, 3))
1781-
>>> b = np.array((2, 3, 4))
1781+
>>> b = np.array((4, 5, 6))
17821782
>>> np.dstack((a, b))
1783-
array([[[1, 2],
1784-
[2, 3],
1785-
[3, 4]]])
1783+
array([[[1, 4],
1784+
[2, 5],
1785+
[3, 6]]])
17861786
17871787
>>> a = np.array([[1], [2], [3]])
1788-
>>> b = np.array([[2], [3], [4]])
1788+
>>> b = np.array([[4], [5], [6]])
17891789
>>> np.dstack((a, b))
1790-
array([[[1, 2]],
1791-
[[2, 3]],
1792-
[[3, 4]]])
1790+
array([[[1, 4]],
1791+
[[2, 5]],
1792+
[[3, 6]]])
17931793
17941794
"""
17951795

0 commit comments

Comments
 (0)