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-
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