inducer / pyopencl

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

add scalar support to cla.min and cla.max #588

Closed alexfikl closed 2 years ago

alexfikl commented 2 years ago

Most other operations support scalars in some way or another. This should also match numpy now.

>> r = np.min(3)
>>> r
3
>>> type(r)
<class 'numpy.int64'>
inducer commented 2 years ago

I feel like there's some sort of slippery slope here, but hey, let's ride along for a bit and see what happens. :)