[Numpy-discussion] ufunc oddities
Charles R Harris
Sat May 24 23:06:32 CDT 2008
On Sat, May 24, 2008 at 10:00 PM, Nathan Bell <firstname.lastname@example.org> wrote:
> On Sat, May 24, 2008 at 10:48 PM, Charles R Harris
> <email@example.com> wrote:
> > You can't overflow in modular arithmetic, which is how numpy is supposed
> > work. Try
> > In : x
> > Out: array([2147483647, 2147483647])
> > In : x.sum()
> > Out: -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"?
So, please tell me how numpy is supposed to work. Write as much as you
please. If you are so moved, why not write the tests for all 64 ufuncs for
all types and combinations and verify that they are all correct as specified
and raise errors when they should.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion