diff --git a/src/ecc/codes/classical/hamming.jl b/src/ecc/codes/classical/hamming.jl index 40ee06f05..3c0c6a8dd 100644 --- a/src/ecc/codes/classical/hamming.jl +++ b/src/ecc/codes/classical/hamming.jl @@ -1,3 +1,5 @@ +using SparseArrays + abstract type ClassicalCode end """ @@ -25,8 +27,6 @@ struct Hamming <: ClassicalCode end end -using SparseArrays - function parity_checks(h::Hamming) n = 2 ^ h.r - 1 rows = Int[]