Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346/****************************************************************************1**2*A setup.h ANUPQ source Eamonn O'Brien3**4*Y Copyright 1995-2001, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany5*Y Copyright 1995-2001, School of Mathematical Sciences, ANU, Australia6**7*/89/* in general pointers have the following format:10if non-negative then they have that value; otherwise -pointer11points to the base address of an exponent-generator string;12these strings are made up of a header block consisting of a13pointer and length followed by exponent-generator pair(s)14stored in array y in the following format1516pointer length exp-gen exp-gen exp-gen ...1718By default, the program has the following limits:19the maximum no of pc generators is 2^16 - 1 = 65535;20the maximum no of defining generators is 2^9 - 1 = 511;21the maximum class is 2^6 - 1 = 63;22the maximum exponent is 2^15 - 1;2324The program can be compiled in two modes; in fixed mode25the above limits are enforced; in runtime mode, these are26also the default; however, the limit on the number of defining27generators and the class can be altered by the user via28on-line options "-d" and "-c"; if such selections are made,29the maximum number of pc generators is consequently altered;30a user must decide the limit on *each* of the number of31defining generators and the class;3233The default limits are set in the header files:34storage_fixed.h (for the fixed version)35runtime.h (for the runtime version).3637If you wish to compile the runtime mode version, then set38the RUN_TIME compiler flag in the Makefile.3940for i positive --41y[pcp->dgen + i] is a pointer for defining generator i42y[pcp->dgen + i] = j (positive) if defining generator i is not redundant43and is assigned generator number j in pcp;44y[pcp->dgen + i] = 0 if defining generator i is currently trivial;45y[pcp->dgen + i] = -ptr if defining generator i is redundant46where ptr is the base address for its value relative to y[0];4748for i negative --49y[pcp->dgen + i] is a pointer for inverse of defining generator i;50y[pcp->dgen + i] = 1 if inverse of defining generator i not needed;51y[pcp->dgen + i] = 0 if inverse is needed and is currently trivial;52y[pcp->dgen + i] = -ptr if inverse of defining generator is needed53where ptr is the base address for its value relative to y[0];5455y[pcp->dgen + pcp->ndgen + i] contains the maximum number of56occurrences of defining generator i in the structure of a57pcp-generator or 0;5859y[pcp->relp + 2 * i - 1] is a pointer to lhs of defining relation i;60y[pcp->relp + 2 * i] is a pointer to rhs of defining relation i;61y[pcp->relp + 2 * i(-1)] = 0 if this side of relation is trivial,62else y[pcp->relp + 2 * i(-1)] = ptr where ptr is the base address63of this side of relation;6465a base address, ba say, of a value of a redundant defining66generator, inverse of a defining generator, side of a defining67relation, power or commutator table entry is such that68y[ba] is the start of a header block of length 2;69y[ba] contains a pointer, ptr say, which is the y-index of the70cell referring to this value (that is, y[ptr] = -ba);71y[ba + 1] contains the length of the following string72(the string starting in y[ba + 2] and ending in y[ba + 1 + y[ba + 1]);7374when a string is no longer needed, y[ba] is set to 0 and y[ptr] is75changed to point to its new value; when only 1 word is to be taken76off of a string there is not a sufficient gap left to form a new772 word header block and this is overcome by forming a 1 word header78block containing the value -1 (this is only needed for subroutine79compact);8081allocation of storage in the array y is made in both directions;8283the following data is stored at the front of y841) y[pcp->clend + i] i = 0 .. MAXCLASS852) y[pcp->dgen + i] i = -pcp->ndgen .. pcp->ndgen .. 2 * pcp->ndgen863) y[pcp->relp + i] i = 1 .. 2 * pcp->ndrel874) the group defining relations (with only a 1 word header block88containing the total length of the following exponent and side89of a group defining relation);905) garbage collectable space (y[pcp->gspace] to y[pcp->lused])91after initialisation the data 1) to 4) is stable in size;92the garbage collectable space comprises strings of data with93each string preceded by a header block; temporary storage is94available in y[pcp->lused + 1] to y[pcp->subgrp] to do collections,95assemble strings, etc;9697the following data is stored at the back of y981) subgroup information (y[pcp->subgrp + i])992) word information (y[pcp->words + i])1003) structure information (y[structure + i])1014) pointers to powers (y[pcp->ppower + i])1025) pointers to pointers to commutators (y[pcp->ppcomm + i])1036) pointers to commutators; to find the value of the commutator104(b,a) say one looks up y[y[pcp->ppcomm + b] + a];105106the storage allocated for the data (3) to (6) changes at the107beginning of each class (in subroutine setup), destroying the108data (1) and (2);109110most storage allocation is checked via calls to is_space_exhausted */111112113