Skip to content

Commit

Permalink
FIX: Action, permuting lists, tests for perms
Browse files Browse the repository at this point in the history
Use list hashing for lists of integers, not lists of vectors.

This fixes #5786
  • Loading branch information
hulpke committed Sep 18, 2024
1 parent 2b482f7 commit b6d69e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/oprt.gi
Original file line number Diff line number Diff line change
Expand Up @@ -3609,6 +3609,7 @@ InstallMethod(DomainForAction,"permutations on lists of integers",true,
function(pnt,acts,act)
local m;
if not (Length(pnt)>0 and ForAll(pnt,IsPosInt) and
ForAll(acts,IsPerm) and
(act=OnSets or act=OnPoints or act=OnRight or act=\^)) then
TryNextMethod();
fi;
Expand Down
3 changes: 2 additions & 1 deletion lib/vecmat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,8 @@ InstallMethod(DomainForAction,"matrix/matrix",IsElmsCollsX,
function(pnt,acts,act)
local l,f;
if (not ForAll(acts,IsMatrix)) or
(act<>OnPoints and act<>OnSubspacesByCanonicalBasis and act<>OnRight) then
(act<>OnPoints and act<>OnSubspacesByCanonicalBasis and act<>OnRight and act<>OnSets and
act<>OnTuples) then
TryNextMethod(); # strange operation, might extend the domain
fi;
l:=NaturalActedSpace(acts,pnt);
Expand Down

0 comments on commit b6d69e8

Please sign in to comment.