Skip to content

Commit

Permalink
stbcbckt: slightly optimise Intersection2 perm gps
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfwilson authored and fingolfin committed Jan 19, 2021
1 parent d28bdd6 commit 8cb65f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stbcbckt.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2960,8 +2960,8 @@ local Omega, P, rbase, L,mg,mh,i;
mh:=MovedPoints(H);
Omega := Intersection(mg,mh);

# disjoint?
if Length(Omega)=0 then
# no two points moved in common?
if Length(Omega)<=1 then
return TrivialSubgroup(Parent(G));
fi;

Expand Down
11 changes: 11 additions & 0 deletions tst/testinstall/stbcbckt.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#@local G,p
gap> START_TEST("stbcbckt.tst");

# Intersection for perm groups with a single moved point in common
gap> G := Group(GeneratorsOfGroup(SymmetricGroup(100)));;
gap> p := PermList(Concatenation([100 .. 199], [1 .. 99]));;
gap> IsTrivial(Intersection(G, G ^ p));
true

#
gap> STOP_TEST("stbcbckt.tst", 1);

0 comments on commit 8cb65f4

Please sign in to comment.