Re: [Numpy-discussion] Fixing/implementing value based Casting

2020-12-11 Thread Sebastian Berg
On Fri, 2020-12-11 at 12:09 +0100, Ralf Gommers wrote: > On Wed, Dec 9, 2020 at 5:22 PM Sebastian Berg < > sebast...@sipsolutions.net> > wrote: > > > Hi all, > > > > Sorry that this will again be a bit complicated again :(. In brief: > > > > * I would like to pass around scalars in some (part

Re: [Numpy-discussion] Fixing/implementing value based Casting

2020-12-11 Thread Ralf Gommers
On Wed, Dec 9, 2020 at 5:22 PM Sebastian Berg wrote: > Hi all, > > Sorry that this will again be a bit complicated again :(. In brief: > > * I would like to pass around scalars in some (partially new) C-API > to implement value-based promotion. > * There are some subtle commutativity issues wit

[Numpy-discussion] Fixing/implementing value based Casting

2020-12-09 Thread Sebastian Berg
Hi all, Sorry that this will again be a bit complicated again :(. In brief: * I would like to pass around scalars in some (partially new) C-API to implement value-based promotion. * There are some subtle commutativity issues with promotion. Commutativity may change in that case (with respect