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

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


On a more general note, if we change to a ufunc, it will get us stuck with
sinc being the normalized version, where the units of the input have to be
in the half-cycles preferred by signal-processing people rather than the
radians preferred by mathematicians.

In this respect, note that there is an outstanding issue about whether to
allow one to choose between the two:
https://github.com/numpy/numpy/issues/13457 (which itself was raised
following an inconclusive PR that tried to add a keyword argument for it).

Adding a keyword argument is much easier for a general function than for a
ufunc.

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


More information about the NumPy-Discussion mailing list