Skip to content

Commit 7299003

Browse files
committed
unit range bug removed
1 parent 5f439bd commit 7299003

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Classical/weight_dist.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,7 @@ end
10221022

10231023
function random_information_set_minimum_distance_bound!(C::AbstractLinearCode; max_iters::Int = 10000, verbose::Bool = false)
10241024

1025+
println("here")
10251026
order(field(C)) == 2 || throw(DomainError(C, "Currently only implemented for binary codes."))
10261027
is_positive(max_iters) || throw(DomainError(max_iters, "The number of iterations must be a positive integer."))
10271028

src/LDPC/codes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function regular_LDPC_code(q::Int, n::Int, l::Int, r::Int; seed::Union{Nothing,
7070
Random.seed!(seed)
7171
m = divexact(n * l, r)
7272
F = if is_prime(q)
73-
GF(q)
73+
Oscar.Nemo.Native.GF(q)
7474
else
7575
factors = Nemo.factor(q)
7676
length(factors) == 1 || throw(DomainError("There is no finite field of order $q"))

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ function _rref_no_col_swap(M::CTMatrixTypes, row_range::AbstractUnitRange{Int},
409409
return A
410410
end
411411
# TODO repeated signature
412-
_rref_no_col_swap(M::CTMatrixTypes, row_range::AbstractUnitRange{Int}, col_range::AbstractUnitRange{Int}) = _rref_no_col_swap(M, 1:row_range.stop, 1:col_range.stop)
412+
_rref_no_col_swap(M::CTMatrixTypes, row_range::Base.OneTo{Int}, col_range::Base.OneTo{Int}) = _rref_no_col_swap(M, 1:row_range.stop, 1:col_range.stop)
413413
_rref_no_col_swap(M::CTMatrixTypes) = _rref_no_col_swap(M, axes(M, 1), axes(M, 2))
414414

415415
function _rref_no_col_swap_binary(A::Union{BitMatrix, Matrix{Bool}, Matrix{<: Integer}},

0 commit comments

Comments
 (0)