[Numpy-discussion] need a better way to fill a grid
John
washakie at gmail.com
Mon Jan 24 10:46:56 EST 2011
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
More information about the NumPy-Discussion
mailing list