[Numpy-discussion] Re: Enhancement for generalized ufuncs

2024-07-12 Thread Warren Weckesser
On Fri, Jul 12, 2024 at 2:35 PM Sebastian Berg wrote: > > On Fri, 2024-07-12 at 09:56 -0400, Warren Weckesser wrote: > > On Fri, Jul 12, 2024 at 7:47 AM Sebastian Berg > > wrote: > > > > > > > > (You won't be able to know these relations from reading the > > > signature, > > > but I doubt it's wo

[Numpy-discussion] Re: Enhancement for generalized ufuncs

2024-07-12 Thread Sebastian Berg
On Fri, 2024-07-12 at 09:56 -0400, Warren Weckesser wrote: > On Fri, Jul 12, 2024 at 7:47 AM Sebastian Berg > wrote: > > > > > (You won't be able to know these relations from reading the > > signature, > > but I doubt it's worth worrying about that.) > > After creating the gufunc with `PyUFunc_

[Numpy-discussion] Re: Enhancement for generalized ufuncs

2024-07-12 Thread Warren Weckesser
On Fri, Jul 12, 2024 at 7:47 AM Sebastian Berg wrote: > > (You won't be able to know these relations from reading the signature, > but I doubt it's worth worrying about that.) After creating the gufunc with `PyUFunc_FromFuncAndDataAndSignature`, the gufunc author could set the `core_signature` f

[Numpy-discussion] Re: Enhancement for generalized ufuncs

2024-07-12 Thread Sebastian Berg
On Thu, 2024-07-11 at 19:31 -0400, Warren Weckesser wrote: > I have implemented quite a few generalized ufuncs over in ufunclab > (https://github.com/WarrenWeckesser/ufunclab), and in the process I > have accumulated a gufunc "wish list". Two items on that list are: > > (1) the ability to impose c