Skip to content

Commit

Permalink
fix Gallager B logic
Browse files Browse the repository at this point in the history
  • Loading branch information
benide committed Jun 20, 2023
1 parent 244c34e commit 8801da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LDPC/decoders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function _messagepassing(H::Matrix{UInt64}, w::Vector{Int}, chn::Union{Missing,
if all(!Base.isequal(w[vn]), checktovarmessages[c2, vn, iter - 1] for c2 in varadlist[vn] if c1 != c2)
vartocheckmessages[vn, c1, iter] ⊻= 1
end
elseif kind == :B && length(varadlist[vn]) > Bt
elseif kind == :B && length(varadlist[vn]) >= Bt
if count(!Base.isequal(w[vn]), checktovarmessages[c2, vn, iter - 1] for c2 in varadlist[vn] if c1 != c2) >= Bt
vartocheckmessages[vn, c1, iter] ⊻= 1
end
Expand Down

0 comments on commit 8801da3

Please sign in to comment.