-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boolean indexing: extract, place, nonzero #1097
Boolean indexing: extract, place, nonzero #1097
Conversation
Implemented mask_positions, _extract, _place, _nonzero and _array_overlap APIs.
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_115 ran successfully. |
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1097/index.html |
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_116 ran successfully. |
This allows to implement behavior of place which cycles over values of val array if that is shorter than the number of non-zero elements in the mask.
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_119 ran successfully. |
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
This PR adds implementation of kernels for boolean indexing.
It adds
mask_positions
,_extract
,_place
and_nonzero
functions that becomea foundation for forthcoming implementations of
dpt.place
,dpt.extract
and
dpt.nonzero
.