pyclesperanto_prototype icon indicating copy to clipboard operation
pyclesperanto_prototype copied to clipboard

build a numpy-like interface

Open yxdragon opened this issue 5 years ago • 2 comments

hi, when I push array to gpu, got a gpu object. can we wrap the gpu object as a numpy-like interface? such as (dot, concat, slice, reshape...)? I know there is a repo called clpy, but it is too hard to install.

yxdragon avatar Jul 24 '20 13:07 yxdragon

Hey @yxdragon ,

that's a great idea! As we have it on matlab side, it totally makes sense here as well :-)

Thanks for the suggestion! If you feel like spending some time on it, contributions are very welcome!

Cheers, Robert

haesleinhuepf avatar Jul 25 '20 08:07 haesleinhuepf

Just adding a link here for how this could be implemented (thanks to @jni for pointing me towards this): https://data-apis.github.io/array-api/latest/API_specification/array_object.html

haesleinhuepf avatar Feb 01 '21 09:02 haesleinhuepf