Skip to content

Commit b810771

Browse files
committed
Tweaks to docstrings for take and put
1 parent 123092b commit b810771

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dpctl/tensor/_indexing_functions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _get_indexing_mode(name):
3939
def take(x, indices, /, *, axis=None, mode="wrap"):
4040
"""take(x, indices, axis=None, mode="wrap")
4141
42-
Takes elements from array along a given axis.
42+
Takes elements from an array along a given axis at given indices.
4343
4444
Args:
4545
x (usm_ndarray):
@@ -123,8 +123,7 @@ def take(x, indices, /, *, axis=None, mode="wrap"):
123123
def put(x, indices, vals, /, *, axis=None, mode="wrap"):
124124
"""put(x, indices, vals, axis=None, mode="wrap")
125125
126-
Puts values of an array into another array
127-
along a given axis.
126+
Puts values into an array along a given axis at given indices.
128127
129128
Args:
130129
x (usm_ndarray):

0 commit comments

Comments
 (0)