68.5 Printing Class Functions

The default ViewObj (see ViewObj) methods for class functions print one of the strings "ClassFunction", "VirtualCharacter", "Character" (depending on whether the class function is known to be a character or virtual character, see IsCharacter, IsVirtualCharacter), followed by the ViewObj output for the underlying character table (see Printing Character Tables), and the list of values. The table is chosen (and not the group) in order to distinguish class functions of different underlying characteristic (see UnderlyingCharacteristic).

The default PrintObj (see PrintObj) method for class functions does the same as ViewObj, except that the character table is is Print-ed instead of View-ed.

Note that if a class function is shown only with one of the strings "ClassFunction", "VirtualCharacter", it may still be that it is in fact a character; just this was not known at the time when the class function was printed.

In order to reduce the space that is needed to print a class function, it may be useful to give a name (see Name) to the underlying character table.

The default Display (see Display) method for a class function chi calls Display for its underlying character table (see Printing Character Tables), with chi as the only entry in the chars list of the options record.

gap> chi:= TrivialCharacter( CharacterTable( "A5" ) );
Character( CharacterTable( "A5" ), [ 1, 1, 1, 1, 1 ] )
gap> Display( chi );
A5

     2  2  2  .  .  .
     3  1  .  1  .  .
     5  1  .  .  1  1

       1a 2a 3a 5a 5b
    2P 1a 1a 3a 5b 5a
    3P 1a 2a 1a 5b 5a
    5P 1a 2a 3a 1a 1a

Y.1     1  1  1  1  1

[Top] [Previous] [Up] [Next] [Index]

GAP 4 manual
February 2000