|
From: Sasha <nd...@ma...> - 2006-02-18 01:55:57
|
On 2/17/06, Travis Oliphant <oli...@ee...> wrote: > Sasha wrote: > > >Maybe we can change ufunc logic so that when the output argument is > >supplied it is returned without scalar conversion. > > > > > That seems sensible. Attached patch implements this idea. With the patch applied: >>> from numpy import * >>> x =3D array(5) >>> add(x,5,x) array(10) >>> x+=3D5 >>> x array(15) The patch passes all the tests, but I would like to hear from others before commit. Personally, I am unhappy that I had to change C-API function. |