File: stabilizer.gi

package info (click to toggle)
gap-hap 1.74%2Bds-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 58,664 kB
  • sloc: xml: 16,678; sh: 197; javascript: 155; makefile: 121; ansic: 47; perl: 24
file content (25 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#(C) Graham Ellis, 2005-2006

#####################################################################
InstallGlobalFunction(VectorStabilizer,
function(G,v)
local	S,g;


if IsPermGroup(G) then
return Stabilizer(G,v,Permuted);
fi;

S:=[];
if IsMatrixGroup(G) then
for g in G do
if g*v = v then Append(S,[g]); fi;
od;
return Group(S);
fi;

Print("G must be a matrix group or a permutation group.\n");
return fail;

end);
#####################################################################