Closed jxwuyi closed 10 years ago
Replace the super slow O(n^2) algorithm with a new one which requires only a quick-sort and a linear scan.
@lileicc @cberzan
For ar1.blog model with 1000 timestep and 10000 particles, the running time reduces from 311s to 264s on my laptop.
LGTM
Replace the super slow O(n^2) algorithm with a new one which requires only a quick-sort and a linear scan.