From 5926de2cb39cc5fd5def1a6ad542aa9fcb24c01d Mon Sep 17 00:00:00 2001 From: Azamat Berdyshev Date: Sat, 7 Sep 2024 11:17:53 +0000 Subject: [PATCH] fix bug --- src/kmeans.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kmeans.jl b/src/kmeans.jl index e3720e83..0983a416 100644 --- a/src/kmeans.jl +++ b/src/kmeans.jl @@ -388,6 +388,6 @@ function repick_unused_centers(X::AbstractMatrix{<:Real}, # in: the data matrix v = view(X, :, j) centers[:, i] = v colwise!(distance, ds, v, X) - tcosts = min(tcosts, ds) + tcosts .= min.(tcosts, ds) end end