inducer / pyopencl

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

cl.array.Array.ravel: takes order as an argument #485

Closed kaushikcfd closed 3 years ago

kaushikcfd commented 3 years ago

Numpy's ravel takes an order argument, so it makes sense that pyopencl's array also take one. It's quite convenient to flatten F-contiguous nd-arrays (n > 1).

inducer commented 3 years ago

Thanks!