File: normalizer.gi

package info (click to toggle)
gap-crystcat 1.1.11-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 716 kB
  • sloc: makefile: 118; sh: 11
file content (26 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (4)
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
26
#############################################################################
##
#W  crystcat.grp                 GAP library                    Franz G"ahler
##
#Y  Copyright (C)  1997,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
##

InstallMethod( NormalizerInGLnZ, 
    "for PointGroups of space groups from the cryst. groups catalogue",
    true, [ IsPointGroup and IsCyclotomicMatrixGroup ], 0,
function( P )
    local S, p, N, s, gen;
    S := AffineCrystGroupOfPointGroup( P );
    if not HasCrystCatRecord( S ) then
        TryNextMethod();
    fi;
    p := CrystCatRecord( S ).parameters;
    N := NormalizerZClass( p[1], p[2], p[3], p[4] );
    s := Size( N );
    if IsAffineCrystGroupOnRight( S ) then
        gen := List( GeneratorsOfGroup( N ), TransposedMat );
        N := GroupByGenerators( gen, One( N ) );
        SetSize( N, s );
    fi;
    return N;
end );