Skip to content

Commit b643b4c

Browse files
committed
Minor Elkan fix
1 parent f0b6b10 commit b643b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elkan.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function chunk_update_bounds(alg, containers, centroids, metric::Metric, r, idx)
287287

288288
@inbounds for i in r
289289
for j in axes(centroids, 2)
290-
lb[j, i] = lb[j, i] > p[j] ? lb[j, i] - p[j] : zero(T)
290+
lb[j, i] -= p[j]
291291
end
292292
stale[i] = true
293293
ub[i] += p[labels[i]]

0 commit comments

Comments
 (0)