Skip to content

Commit 9f449d1

Browse files
committed
Update docstring to reflect change in where functionality
1 parent 20929be commit 9f449d1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dpctl/tensor/_search_functions.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,17 @@ def where(condition, x1, x2, /, *, order="K", out=None):
121121
and otherwise yields from ``x2``.
122122
Must be compatible with ``x1`` and ``x2`` according
123123
to broadcasting rules.
124-
x1 (usm_ndarray): Array from which values are chosen when
125-
``condition`` is ``True``.
124+
x1 (Union[usm_ndarray, bool, int, float, complex]):
125+
Array from which values are chosen when ``condition`` is ``True``.
126126
Must be compatible with ``condition`` and ``x2`` according
127127
to broadcasting rules.
128-
x2 (usm_ndarray): Array from which values are chosen when
129-
``condition`` is not ``True``.
128+
x2 (Union[usm_ndarray, bool, int, float, complex]):
129+
Array from which values are chosen when ``condition`` is not
130+
``True``.
130131
Must be compatible with ``condition`` and ``x2`` according
131132
to broadcasting rules.
132133
order (``"K"``, ``"C"``, ``"F"``, ``"A"``, optional):
133-
Memory layout of the new output arra,
134+
Memory layout of the new output array,
134135
if parameter ``out`` is ``None``.
135136
Default: ``"K"``.
136137
out (Optional[usm_ndarray]):

0 commit comments

Comments
 (0)