[Numpy-discussion] Binary ufuncs: minimum

Nathan Bell wnbell@gmail....
Tue May 27 20:04:48 CDT 2008


On Tue, May 27, 2008 at 7:08 PM, Christopher Barker
<Chris.Barker@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@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/


More information about the Numpy-discussion mailing list