Skip to content

Commit

Permalink
Some trivial cleanup for our meataxe
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored and ThomasBreuer committed Sep 18, 2024
1 parent fddffa2 commit 1ea61c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/meataxe.gi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ InstallGlobalFunction(GModuleByMats,function(arg)
local l,f,dim,m;
l:=arg[1];
if Length(arg)=1 then
Error("Usage: GModuleByMats(<mats>,[<id>,]<field>)");
Error("Usage: GModuleByMats(<mats>,[<dim>,]<field>)");
fi;
f:=arg[Length(arg)];
if Length(l)>0 and Characteristic(l[1])<>Characteristic(f) then
Expand Down Expand Up @@ -195,7 +195,7 @@ InstallGlobalFunction(WedgeGModule,function( module)
row:=[];
for m in [1..dim] do
for n in [1..m - 1] do
x:=mat[j][m] * mat[k][n] - mat[j][n] * mat[k][m];
x:=mat[j,m] * mat[k,n] - mat[j,n] * mat[k,m];
Add(row, x);
od;
od;
Expand Down Expand Up @@ -392,7 +392,7 @@ SMTX.SpinnedBasis:=function( arg )
ngens:=Length(matrices);
fi;
ans:=[];
zero:=Zero(matrices[1][1][1]);
zero:=ZeroOfBaseDomain(matrices[1]);
if IsList(v) and Length(v)=0 then
return [];
elif IsMatrix(v) then
Expand Down Expand Up @@ -1494,7 +1494,7 @@ local L, d, p, M, one, zero, R, h, v, w, i, j, nd, ans,
else
return Error("usage: SMTX.FrobeniusAction(<F>, <A>, <v>, [, <basis>] )");
fi;
one :=One(A[1][1]);
one :=OneOfBaseDomain(A);
zero:=Zero(one);
d:=Length( A );
M:=ListWithIdenticalEntries(Length(A[1]) + 1,zero);
Expand Down Expand Up @@ -3372,7 +3372,7 @@ SMTX.InvariantSesquilinearForm:=function( module )
if not IsDiagonalMat(isot) then
Error("Form does not seem to be of the right kind (non-diagonal)!");
fi;
l:=LogFFE(isot[1][1],Z(q));
l:=LogFFE(isot[1,1],Z(q));
if l mod (r-1) <> 0 then
Error("Form does not seem to be of the right kind (not (q-1)st root)!");
fi;
Expand Down

0 comments on commit 1ea61c7

Please sign in to comment.