[Numpy-discussion] Integer overflow in test_einsum (1.7.1)

Pauli Virtanen pav at iki.fi
Tue May 14 15:31:13 EDT 2013

14.05.2013 21:52, Toder, Evgeny kirjoitti:
> So, does numpy implement modular (two’s complement)
> arithmetic for signed types

Numpy leaves integer arithmetic to the C compiler.

Python and its C modules however by default specify -fwrapv for gcc and
its ilk, so the behavior might seem consistent on these platforms.

Pauli Virtanen

More information about the NumPy-Discussion mailing list