Skip to content

Commit

Permalink
Update src/ecc/codes/classical/bch.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Krastanov <github.acc@krastanov.org>
  • Loading branch information
Fe-r-oz and Krastanov authored Apr 18, 2024
1 parent 88bb42d commit 976dd45
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ecc/codes/classical/bch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ struct BCH <: ClassicalCode
function BCH(n, t)
if n < 6 || n > 500 || t < 0 || t > 2^(ceil(Int, log2(n + 1)) - 1)
throw(ArgumentError("Invalid parameters: 'n' and 't' must be positive, and 'r' must be >= to 3. Additionally, 'n' is >= to 7 since n = 2ͬ - 1 and 't' < 2^(r - 1), to obtain a valid code and to tractable."))

end
new(n, t)
end
Expand Down

0 comments on commit 976dd45

Please sign in to comment.