[Numpy-discussion] Converting np.sinc into a ufunc

Marten van Kerkwijk m.h.vankerkwijk at gmail.com
Wed May 22 21:10:25 EDT 2019


> Otherwise, there should
>>> be no change except additional features of ufuncs and the move to a C
>>> implementation.
>>>
>>
> I see this is one of the functions that uses asanyarray, so what about
> impact on subclass behavior?
>

So, subclasses are passed on, as they are in ufuncs. In general, that
should mean it is OK for subclasses. For astropy's Quantity, it would be an
improvement, as `where` was never properly supported, and with a ufunc, we
can handle it easily.

-- Marten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190522/7a26c07e/attachment.html>


More information about the NumPy-Discussion mailing list