Skip to content

Commit 2771c87

Browse files
committed
Tweaks to choose docstring
1 parent 7e08f7c commit 2771c87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dpnp/dpnp_iface_indexing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,14 @@ def choose(a, choices, out=None, mode="wrap"):
241241
>>> np.choose(np.array([2, 4, 1, 0]), choices, mode='wrap'
242242
... # 4 is clipped to 3
243243
... )
244-
array([20, 31, 12, 3])
244+
array([20, 31, 12, 3])
245245
>>> np.choose(np.array([2, -1, 1, 0]), choices, mode='wrap'
246246
... # -1 goes to 3 (-1+4)
247247
... )
248-
array([20, 31, 12, 3])
248+
array([20, 31, 12, 3])
249249
250250
An example using broadcasting:
251+
251252
>>> a = np.array([[1, 0, 1], [0, 1, 0], [1, 0, 1]])
252253
>>> choices = np.array([-10, 10])
253254
>>> np.choose(a, choices)

0 commit comments

Comments
 (0)