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 pretty_filterfns.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/* header file supplied by Sarah Rees */1011#ifndef ANUPQ_PRETTY_FILTER_H12#define ANUPQ_PRETTY_FILTER_H1314#include <stdlib.h>1516typedef int gen_type; /*name for generator*/1718#define anu_valloc(A,N) (A *)malloc((unsigned)(sizeof(A)*(N)))19#define vzalloc(A,N) (A *)calloc((unsigned)N,(unsigned)sizeof(A))20#define inv(g) inv_of[(g)]2122typedef struct {23gen_type *g;24int first; /* the position of the first entry in the word */25int last; /* position of last entry; if word is empty,26define this to be position BEFORE first entry */27int space; /* this should be a power of 2 */28char type; /* initialised to 0, 'c' for commutator, or 's' for string */29int n; /* used if the word is a power of that pointed to by the "g" field.300 means the same as 1, i.e. the word is not a proper power */31} word;3233typedef struct word_link {34word * wp;35struct word_link * next;36} word_link;3738typedef struct word_traverser {39word * wp;40int posn;41} word_traverser;4243extern char word_delget_first(word *wp, gen_type *gp);44extern char word_del_last(word *wp);45extern char word_next(word_traverser *wtp, gen_type *gp);46extern char read_next_gen(word *wp, FILE *file);47extern char read_next_word(word *wp, FILE *file);48extern char word_get_last(word *wp, gen_type *gp);49extern char find_keyword(char *label, FILE *rfile);50extern char read_next_string(char *cp, int n, FILE *rfile);51extern char read_next_int(int *kp, FILE *rfile);52extern char word_eq(word *w1p, word *w2p);5354word_link * word_link_create(void);55void word_link_init (word_link * wlp);56void word_link_clear (word_link * wlp);5758void word_expand (word *wp);59void word2prog_word (word *user_wordp, word *prog_wordp);6061void default_inverse_array (void);62int read_char (FILE *rfile);63void find_char (char c, FILE *rfile);6465#define word_length(wp) (((wp)->last) + 1 - ((wp)->first))6667extern int num_gens;68extern int paired_gens;69extern gen_type * inv_of;70extern int * pairnumber;71extern word * user_gen_name;72extern int gen_array_size;737475#endif767778