[Numpy-discussion] int 'up'casted to uint
pau.gargallo at gmail.com
Tue Jul 11 11:24:34 CDT 2006
On 7/11/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:
> Pau Gargallo wrote:
> > hi,
> > looking at the upcasting table at
> > http://www.scipy.org/Tentative_NumPy_Tutorial#head-4c1d53fe504adc97baf27b65513b4b97586a4fc5
> > I saw that int's are sometimes casted to uint's.
> > In : a = array(,int16)
> > In : b = array(,uint32)
> > In : a+b
> > Out: array(, dtype=uint32)
> > is that intended?
> It's a bug. The result should be int64. I've fixed it in SVN.
More information about the Numpy-discussion