Skip to content

Commit 65f7320

Browse files
committed
x -> a in choose
1 parent 1e46bcc commit 65f7320

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dpnp/dpnp_iface_indexing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,22 +194,22 @@ def _choose_run(inds, chcs, q, usm_type, out=None, mode=0):
194194
return out
195195

196196

197-
def choose(x, choices, out=None, mode="wrap"):
197+
def choose(a, choices, out=None, mode="wrap"):
198198
"""
199199
Construct an array from an index array and a set of arrays to choose from.
200200
201201
For full documentation refer to :obj:`numpy.choose`.
202202
203203
Parameters
204204
----------
205-
x : {dpnp.ndarray, usm_ndarray}
205+
a : {dpnp.ndarray, usm_ndarray}
206206
An integer array of indices indicating the position of the array
207207
in `choices` to choose from. Behavior of out-of-bounds integers (i.e.,
208208
integers outside of `[0, n-1]` where `n` is the number of choices) is
209209
determined by the `mode` keyword.
210210
choices : {dpnp.ndarray, usm_ndarray, sequence of dpnp.ndarrays and
211211
usm_ndarrays}
212-
Choice arrays. `x` and choice arrays must be broadcast-compatible.
212+
Choice arrays. `a` and choice arrays must be broadcast-compatible.
213213
If `choices` is an array, the array is unstacked into a sequence of
214214
arrays.
215215
out : {None, dpnp.ndarray, usm_ndarray}, optional
@@ -237,7 +237,7 @@ def choose(x, choices, out=None, mode="wrap"):
237237
"""
238238
mode = _get_indexing_mode(mode)
239239

240-
inds = dpnp.get_usm_ndarray(x)
240+
inds = dpnp.get_usm_ndarray(a)
241241
ind_dt = inds.dtype
242242
if ind_dt.kind not in "ui":
243243
raise ValueError("input index array must be of integer data type")

0 commit comments

Comments
 (0)