-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Stephan Hoyer on the ML:
You could actually use a mix of array_prepare and array_wrap to make
(non-generalized) ufuncs work, e.g., for functions like np.sin:
- In array_prepare, return the non-fill values of the array concatenated
with the fill value.- In array_wrap, reshape all but the last element to build a new sparse
array, using the last element for the new fill value.This would be a neat trick and get you most of what you could hope for from
numpy_ufunc.
Looks extremely cool, needs copious testing.