IntelPython / dpctl

Python SYCL bindings and SYCL-based Python Array API library
https://intelpython.github.io/dpctl/
Apache License 2.0
97 stars 29 forks source link

Fix `tensor.searchsorted` for `x1` with strides and scalar (0D) `x2` #1693

Closed ndgrigorian closed 1 month ago

ndgrigorian commented 1 month ago

Closes #1689

This PR fixes dpctl.tensor.searchsorted for the case of an input array x1 with negative strides and a scalar (0D) array x2.

Previously, this case would raise RuntimeError.

github-actions[bot] commented 1 month ago

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. :crossed_fingers:

github-actions[bot] commented 1 month ago

Array API standard conformance tests for dpctl=0.18.0dev0=py310h15de555_11 ran successfully. Passed: 889 Failed: 16 Skipped: 91

coveralls commented 1 month ago

Coverage Status

coverage: 87.943%. remained the same when pulling 8c6a57e1bf6b1edf3d71fede1d7e2060107f4c81 on fix-strided-searchsorted-scalar-needle into 4dac76c4c6c36ac66faf1dc29ba78a3f63641b9e on master.