[Numpy-discussion] ufunc oddities

Nathan Bell wnbell at gmail.com
Sun May 25 00:00:12 EDT 2008


On Sat, May 24, 2008 at 10:48 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
>
> You can't overflow in modular arithmetic, which is how numpy is supposed to
> work. Try
>
> In [51]: x
> Out[51]: array([2147483647, 2147483647])
>
> In [52]: x.sum()
> Out[52]: -2
>

I would call that an overflow.

Have you considered that other people might have a different notion of
"how numpy is supposed to work"?

-- 
Nathan Bell wnbell at gmail.com
http://graphics.cs.uiuc.edu/~wnbell/



More information about the NumPy-Discussion mailing list