Re: ENH: Add float16, npy_half, specific routines to the NumPy C-API as NpyHalf*
Matti Picus via NumPy-Discussion <[email protected]> Sun, 23 Nov 2025 09:45:56 +0200
| Newsgroups | gmane.comp.python.numeric.general |
|---|---|
| Message-ID | <[email protected]> |
On 22/11/2025 1:59, Amelia Thurdekoos wrote: > > Expose |halffloat.h| functionality through the regular NumPy C-API as > |NpyHalf*|, without requiring the linking of |npymath| explicitly as a > step toward removing the |npymath| static library altogether. > > > Amelia Thurdekoos > > Staff Software Engineer, Quansight > > I would be concerned about the performance impact of having to go through function calls for functions that are really macros, especially on platforms with built-in float16. Perhaps we could still use macros on those platforms. We would have to check the benchmarks of consumers of the npymath library for impact. Do we know of consumers other than SciPy? Matti _______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/numpy-discussion.python.org Member address: [email protected]