Sebastian Haase wrote: > Hi! > b is a non-native byteorder array of type int16 > but see further down: same after converting to native ... > >>>> repr(b.dtype) >>>> > 'dtype('>i2')' >
The problem is no-doubt related to "wrapping" for integers. Your total is getting too large to fit into the reducing data-type. What does d.sum() give you? You can add d.mean(dtype='d') to force reduction over doubles. -Travis ------------------------------------------------------------------------- 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 http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion