new ufunc implementations for object arrays
Hello all, I've just submitted a PR which overhauls the implementation of ufuncs for object types. https://github.com/numpy/numpy/pull/6320 The motivation for this is that many ufuncs (eg all transcendental functions) can't handle objects. This PR will also make object arrays more customizable, as all ufuncs can now be overridden by the user by defining methods on the object. I'd like to see if there's enough interest/agreement for me to finish it, and also to have more eyes look over the pure-python ufunc implementations since I am sure I have missed some edge cases. I would love suggestions, and I need help for a few cases I couldn't figure out (eg np.nextafter, np.spacing, np.cbrt. Also, np.expm1 np.signbit and others are a bit suspect). Allan
participants (1)
-
Allan Haldane