From 3027d5d40b7bc14da7ef0cb6c2cfdfba83cd0413 Mon Sep 17 00:00:00 2001 From: stecrotti Date: Sun, 29 Dec 2024 16:46:51 +0100 Subject: [PATCH] fix corner case where all non-decimated variables have all-zeros belief --- src/decimation.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decimation.jl b/src/decimation.jl index fbc05e8..ccc1a97 100644 --- a/src/decimation.jl +++ b/src/decimation.jl @@ -49,7 +49,7 @@ function _find_most_biased(bp::BP, decimated) for j in eachindex(b) if !decimated[j] mx = maximum(b[j]) - if mx > m + if mx ≥ m m = mx i = j end