Skip to content

Commit

Permalink
Revert changes to LinearCodeByGenerators to allow additional testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
osj1961 committed Dec 24, 2024
1 parent 5399b6b commit 259d98f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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;
V:= Objectify( NewType( FamilyObj( gens ),
IsLeftModule and
IsLinearCodeRep and IsCodeDefaultRep ),
Expand All @@ -120,8 +120,6 @@ LinearCodeByGenerators := function(F, gens)
SetGeneratorsOfLeftModule( V, AsList( One(F)*gens ) );
SetIsLinearCode(V, true);
SetWordLength(V, Length(gens[1]));
M := MutableCopyMat( GeneratorMat(V) );
V!.GeneratorMat := M;
return V;

end;
Expand Down

0 comments on commit 259d98f

Please sign in to comment.