[Numpy-discussion] NumPy 2.2.1 released

2024-12-21 Thread Charles R Harris via NumPy-Discussion
Hi All, On behalf of the NumPy team, I'm pleased to announce the release of NumPy 2.2.1. NumPy 2.2.1 is a patch release following 2.2.0. It fixes bugs found after the 2.2.0 release and has several maintenance pins to work around upstream changes. There was some breakage in downstream projects fol

[Numpy-discussion] Is a Python function a gufunc if it broadcasts its arguments appropriately?

2024-12-21 Thread john.a.dawson--- via NumPy-Discussion
For example, is the function `stack` below a gufunc with signature (),()->(2)? def stack(a, b): broadcasts = np.broadcast_arrays(a, b) return np.stack(broadcasts, axis=-1) Or must gufuncs be written in C? Or are other things required? ___ NumPy-