We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97c93b3 commit d66457bCopy full SHA for d66457b
src/utils.jl
@@ -64,7 +64,8 @@ function make_knn_heaps(data::Vector{V},
64
M <: SemiMetric}
65
np = length(data)
66
D = result_type(metric, data[1], data[1])
67
- knn_heaps = [BinaryMaxHeap{NNTuple{Int, D}}() for _ in 1:np]
+ HeapType = BinaryMaxHeap{NNTuple{Int, D}}
68
+ knn_heaps = HeapType[HeapType() for _ in 1:np]
69
for i in 1:np
70
k_idxs = sample_neighbors(np, n_neighbors, exclude=[i])
71
for j in k_idxs
0 commit comments