You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding __array_function__ so that Numpy calls with dparrays work. (#261)
* Calling numpy.sum with a dparray should work now. __array_function__ is now implemented. I changed the way that we determine if a class or function is defined in this file from using eval to getting the module from sys.modules[__name__] and then using hasattr on the module.
* Efficiency improvements
1. Create class_list, function_list in one pass over members of np module
2. Renamed isdef into _isdef, since it is an internal function
3. Create certain objects in __array_function__ only if we intend to use
them.
* Darkened numpy_with_usm_shared.py with black
* account of C-API defined functions of NumPy
* Don't need atypes since that just verified it was the same as the types argument. Don't need fatypes since it wasn't being used.
* black changes
* Don't need explicit if debug once we get rid of atypes calculation. That allows dprint to move left and back to one line.
Co-authored-by: Oleksandr Pavlyk <[email protected]>
0 commit comments