[Numpy-discussion] Binary ufuncs: minimum

Nathan Bell wnbell at gmail.com
Tue May 27 21:04:48 EDT 2008


On Tue, May 27, 2008 at 7:08 PM, Christopher Barker
<Chris.Barker at noaa.gov> wrote:
>
> Exactly. However, while I'd like to guarantee that abs(x) >= 0, the
> truth is that numpy is "close to the metal" in a lot of ways, and anyone
> should know that the arithmetic of integers near max and minimum values
> is fraught with danger.
>

It would be a mistake to assume that many/most NumPy users know the
oddities of two's complement signed integer representations.

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



More information about the NumPy-Discussion mailing list