Skip to content

Commit

Permalink
Switch from old hashtable API to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jul 27, 2023
1 parent bfbedcd commit fb58ba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/group.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2133,15 +2133,15 @@ InstallGlobalFunction( NiceMonomorphismByDomain,
# op the operation suitable for x and g
# It is guaranteed that g acts faithfully on the orbit.
local cand,gens,h,ht,i,iso,nr,pgens;
ht := NewHT(dom[1],Length(dom)*2);
ht := HTCreate(dom[1],rec(hashlen:=Length(dom)*2));
for i in [1..Length(dom)] do
AddHT(ht,dom[i],i);
HTAdd(ht,dom[i],i);
od;
pgens := [];
gens := GeneratorsOfGroup(g);
for i in [1..Length(gens)] do
Add(pgens,PermList( List([1..Length(dom)],
j->ValueHT(ht,op(dom[j],gens[i]))) ));
j->HTValue(ht,op(dom[j],gens[i]))) ));
od;
h := GroupWithGenerators(pgens);
SetSize(h,Size(g));
Expand Down

0 comments on commit fb58ba6

Please sign in to comment.