Skip to content

Commit 730e716

Browse files
committed
Add comment about x1 being 1-D in searchsorted
1 parent 1c4460d commit 730e716

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

array_api_strict/_searching_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def searchsorted(
6464
sorter = sorter._array if sorter is not None else None
6565
# TODO: The sort order of nans and signed zeros is implementation
6666
# dependent. Should we error/warn if they are present?
67+
68+
# x1 must be 1-D, but NumPy already requires this.
6769
return Array._new(np.searchsorted(x1._array, x2._array, side=side, sorter=sorter))
6870

6971
def where(condition: Array, x1: Array, x2: Array, /) -> Array:

0 commit comments

Comments
 (0)