Skip to content

Commit

Permalink
Fixes to CoveringRadius and LinearCodeByGenerators
Browse files Browse the repository at this point in the history
  • Loading branch information
osj1961 committed Dec 31, 2024
1 parent f98879d commit 5b3e8b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/codecr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CalculateLinearCodeCoveringRadius := function( code )
#return Maximum( List( SyndromeTable( code ), i -> Weight( i[ 1 ] ) ) );
# (old version had line above in place of next 5)
H:=CheckMat(code);
CLs:=CosetLeadersMatFFE(H,LeftActingDomain(code));
CLs:=List(Set(CosetLeadersMatFFE(H,LeftActingDomain(code))));
wts:=List([1..Length(CLs)],i->WeightVecFFE(CLs[i]));
rho:=Maximum(wts);
return rho;
Expand Down
2 changes: 1 addition & 1 deletion lib/codegen.gi
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ end);
##Create a linear code from a list of Codeword generators
LinearCodeByGenerators := function(F, gens)

local V, M;
local V, M, row, i, j;
V:= Objectify( NewType( FamilyObj( gens ),
IsLeftModule and
IsLinearCodeRep and IsCodeDefaultRep ),
Expand Down

0 comments on commit 5b3e8b8

Please sign in to comment.