From: Keith G. <kwg...@gm...> - 2006-10-18 19:31:47
|
On 10/18/06, Christopher Hanley <ch...@st...> wrote: > I can't decide if the following is a bug or feature. Numpy scalars are > allowed to overflow silently while numarray upcasts to a larger python > type. I guess my biggest problem is that the overflow occurs silently. I had that problem yesterday, which was difficult to diagnose for a new user like me. Here's an example: >> x = zeros((300, 300)) >> x = x > 1 # False >> x = 1 - x # ones >> y = x.T * x >> y[0,0] 44 |