Thanks again everyone, Just for completeness. First, there seems to be a problem with my original method, but it must have to do with indexing. Apart from being slow, it reports back maximum values a factor of two greater than the other two methods, so something is amiss there. The other two methods provide identical results in terms of the sums.
Original method: ~ 13.3 seconds Pure Python per David: ~ 0.017 seconds Numpy histogramdd per Vincent: ~ 0.007 seconds Thanks, john _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion