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