Skip to content

Commit 5926de2

Browse files
committed
fix bug
1 parent 74d5d43 commit 5926de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kmeans.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,6 @@ function repick_unused_centers(X::AbstractMatrix{<:Real}, # in: the data matrix
388388
v = view(X, :, j)
389389
centers[:, i] = v
390390
colwise!(distance, ds, v, X)
391-
tcosts = min(tcosts, ds)
391+
tcosts .= min.(tcosts, ds)
392392
end
393393
end

0 commit comments

Comments
 (0)