Skip to content

Commit

Permalink
Fix AsSet and other methods for GL(1,Integers) and also SL
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Dec 13, 2022
1 parent fd929e9 commit bfb24ad
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/grpramat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ local gens,mat,G;
else
SetIsFinite(G,true);
SetSize(G,2);
SetNiceMonomorphism(G,DoSparseLinearActionOnFaithfulSubset(G, OnRight, false));
fi;
return G;
end);
Expand Down Expand Up @@ -97,6 +98,7 @@ local gens,mat,G;
else
SetIsFinite(G,true);
SetSize(G,1);
SetNiceMonomorphism(G,DoSparseLinearActionOnFaithfulSubset(G, OnRight, false));
fi;
return G;
end);
Expand Down
22 changes: 22 additions & 0 deletions tst/testinstall/grp/classic-G.tst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,28 @@ GF(3)
gap> ForAll([2,3,5], p -> IsConjugate(G, SylowSubgroup(G,2), SylowSubgroup(H,2)));
true

#
gap> G:=GL(1,Integers);
GL(1,Integers)
gap> Size(G);
2
gap> Elements(G);
[ [ [ -1 ] ], [ [ 1 ] ] ]
gap> [[-1]] in G;
true
gap> [[2]] in G;
false

#
gap> G:=GL(2,Integers);
GL(2,Integers)
gap> Size(G);
infinity
gap> [[2,3],[0,1]] in G;
false
gap> [[1,3],[0,1]] in G;
true

#
gap> G := GO(3,5);
GO(0,3,5)
Expand Down
22 changes: 22 additions & 0 deletions tst/testinstall/grp/classic-S.tst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,28 @@ Error, usage: SpecialLinearGroup( [<filter>, ]<d>, <R> )
gap> SL(3,6);
Error, usage: SpecialLinearGroup( [<filter>, ]<d>, <R> )
#
gap> G:=SL(1,Integers);
SL(1,Integers)
gap> Size(G);
1
gap> Elements(G);
[ [ [ 1 ] ] ]
gap> [[1]] in G;
true
gap> [[-1]] in G;
false
#
gap> G:=SL(2,Integers);
SL(2,Integers)
gap> Size(G);
infinity
gap> [[2,3],[0,1]] in G;
false
gap> [[1,3],[0,1]] in G;
true
#
gap> G := SO(3,5);
SO(0,3,5)
Expand Down

0 comments on commit bfb24ad

Please sign in to comment.