inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.05k stars 241 forks source link

Allow unsigned int for fancy indexing #532

Closed alexfikl closed 2 years ago

alexfikl commented 2 years ago

Is there a reason this wasn't allowed?

Context: was trying to port take in pytential and an index was uint8 (apparently because of boxtree).

inducer commented 2 years ago

I can't think of a reason why we shouldn't allow it. And, at any rate, there wasn't a comment saying not to allow unsigned. :)

inducer commented 2 years ago

https://pypi.org/project/pyopencl/2021.2.13/