Closed KristofferC closed 2 months ago
Same with KDTree?
KDTree already does this.
By the way, it is amazing how little resources KDTree is using compared to the BallTree (in this very specific case):
x = KDTree(data);
@count_ops inrange(x, v, 0.01)
Flop Counter: 196 flop
┌─────┬─────────┐
│ │ Float64 │
├─────┼─────────┤
│ add │ 43 │
│ sub │ 89 │
│ mul │ 64 │
└─────┴─────────┘
Master:
PR:
No more square roots 🎉.