Hi Bruce,

Ahh, but I would have thought the precision for the array operation would be the same no matter which values I wish to sum? The array is in float64 in all cases.

I would not have thought altering the type of the integer values would make any difference as these indices are all below 5 milllion.

Perhaps I have misunderstood your suggestion could you expand.

Cheers,

Hanni


Also, increase the numerical precision as that may depend on your
platform especially given the input values above are ints. Numpy has
float128 and int64 that will minimize rounding error.

Bruce
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion