/usr/share/gap/lib/vec8bit.gd is in gap-libs 4r8p8-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | #############################################################################
##
#W vec8bit.gd GAP Library Steve Linton
##
##
#Y Copyright (C) 1997, Lehrstuhl D für Mathematik, RWTH Aachen, Germany
#Y (C) 1998 School Math and Comp. Sci., University of St Andrews, Scotland
#Y Copyright (C) 2002 The GAP Group
##
## This file should possibly be called vec8bit.g (see also vecmat.gd)
## It provides some things that the kernel needs from the library
##
#############################################################################
##
#V PRIMES_COMPACT_FIELDS primes for which a compact representation exists
##
BIND_GLOBAL("PRIMES_COMPACT_FIELDS",SSortedList(
[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,
101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,
193,197,199,211,223,227,229,233,239,241,251] ));
#############################################################################
##
#R Is8BitVectorRep( <obj> ) . . . compressed vector over GFQ (3 <= q <= 256)
##
DeclareRepresentation( "Is8BitVectorRep",
IsDataObjectRep and IsRowVectorObj,[],
IsRowVector and IsSmallList );
#############################################################################
##
#v TYPES_VEC8BIT . . . . . . . . prepared types for compressed GF(q) vectors
##
## A length 3 list of length 257 lists. TYPES_VEC8BIT[1][q] will be the type
## of mutable vectors over GF(q), TYPES_VEC8BIT[2][q] is the type of
## immutable vectors. TYPES_VEc8BIT[3][q] is the type of locked vectors.
## The 257th position is bound to 1 to stop the lists
## shrinking.
##
## It is accessed directly by the kernel, so the format cannot be changed
## without changing the kernel.
##
DeclareGlobalVariable( "TYPES_VEC8BIT" );
#############################################################################
##
#F TYPE_VEC8BIT( <q>, <mut> ) . . computes type of compressed GF(q) vectors
##
## Normally called by the kernel, caches results in TYPES_VEC8BIT
##
DeclareGlobalFunction( "TYPE_VEC8BIT" );
DeclareGlobalFunction( "TYPE_VEC8BIT_LOCKED" );
#############################################################################
##
#V TYPE_FIELDINFO_8BIT . . . . . . . . . . . . . type of the fieldinfo bags
##
## These bags are created by the kernel and accessed by the kernel. The type
## doesn't really say anything, because there are no applicable operations.
##
DeclareGlobalVariable( "TYPE_FIELDINFO_8BIT" );
#############################################################################
##
#M IsConstantTimeAccessList( <obj> )
#M IsSmallList( <obj> )
#M IsListDefault( <obj> )
##
## All compressed GF(q) vectors are small and constant-time access,
## and support the default list arithmetic (multiplication and addition).
##
InstallTrueMethod( IsConstantTimeAccessList, IsList and Is8BitVectorRep );
InstallTrueMethod( IsSmallList, IsList and Is8BitVectorRep );
InstallTrueMethod( IsListDefault, IsList and Is8BitVectorRep );
#############################################################################
##
#E
|