scalar object bug or feature?

Keith Goodman kwgoodman at
Wed Oct 18 14:31:43 CDT 2006

On 10/18/06, Christopher Hanley <chanley at> 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]

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

More information about the Numpy-discussion mailing list