Adding axis/axes argument on np.searchsorted

Iason Krommydas via NumPy-Discussion <[email protected]> Thu, 30 Jul 2026 16:32:41 -0500
Newsgroups gmane.comp.python.numeric.general
Message-ID <[email protected]>
--===============7841955481564633815==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_2BE94965-73D4-48FC-9FC9-FBA4271AD4D1"


--Apple-Mail=_2BE94965-73D4-48FC-9FC9-FBA4271AD4D1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi all,

There is an open request regarding adding axis support on =
np.searchsorted: https://github.com/numpy/numpy/issues/4224
I was going to take that task as part of my current internship but this =
seems like it needs a good API design decision. The idea was to turn the =
searchsorted internals into a gufunc.
In the past week I've posted some thoughts regarding the gufunc =
signature on that thread at the bottom and a few people have chimed in =
and are sharing thoughts on what the signature and the high-level API =
should be. The jax team have also shared their API for a searchsorted =
implementation that is currently private in jax.
I am sending this message to just share that thoughts and help are =
needed here so please chime in the numpy issue if you have any opinions.

Cheers,
Iason.


--Apple-Mail=_2BE94965-73D4-48FC-9FC9-FBA4271AD4D1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dus-ascii"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><div>Hi =
all,</div><div><br></div><div>There is an open request regarding adding =
axis support on np.searchsorted:&nbsp;<a =
href=3D"https://github.com/numpy/numpy/issues/4224">https://github.com/num=
py/numpy/issues/4224</a></div><div>I was going to take that task as part =
of my current internship but this seems like it needs a good API design =
decision. The idea was to turn the searchsorted internals into a =
gufunc.</div><div>In the past week I've posted some thoughts regarding =
the gufunc signature on that thread at the bottom and a few people have =
chimed in and are sharing thoughts on what the signature and the =
high-level API should be. The jax team have also shared their API for a =
searchsorted implementation that is currently private in =
jax.</div><div>I am sending this message to just share that thoughts and =
help are needed here so please chime in the numpy issue if you have any =
opinions.</div><div><br></div><div>Cheers,</div><div>Iason.</div><div><br>=
</div></body></html>=

--Apple-Mail=_2BE94965-73D4-48FC-9FC9-FBA4271AD4D1--

--===============7841955481564633815==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/numpy-discussion.python.org
Member address: [email protected]

--===============7841955481564633815==--