Skip to content

Commit

Permalink
fix corner case where all non-decimated variables have all-zeros belief
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Jan 1, 2025
1 parent ca5f17f commit 3027d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decimation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3027d5d

Please sign in to comment.