AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

Utilize the NumPy array function protocol. #49

Closed carterbox closed 3 years ago

carterbox commented 4 years ago

Writing functions that specifically CuPy is not necessary anymore after NumPy 1.17 because of the array function protocol. Due to this API feature, NumPy functions that are passed CuPy arrays will automatically call the corresponding CuPy functions instead of trying to convert them to NumPy arrays.

https://numpy.org/neps/nep-0018-array-function-protocol.html

carterbox commented 3 years ago

This features is not relevant since we dropped deprecated NumPy Operators.