-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodular_resolution.h
72 lines (54 loc) · 2.51 KB
/
modular_resolution.h
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
/*****************************************************************************
Copyright (C) 2009 David J. Green <[email protected]>
Copyright (C) 2018 Simon A. King <[email protected]>
This file is part of p_group_cohomology.
p_group_cohomoloy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
p_group_cohomoloy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with p_group_cohomoloy. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
/**
* This is the header for all C-functions of David Green that we want
* to put into a library to be used for group cohomology computations.
**/
#if !defined(__AUFLOESUNG_INCLUDED) /* Include only once */
#define __AUFLOESUNG_INCLUDED
#include "meataxe.h"
#include "nDiag.h"
#include "urbild_decls.h"
#include "nBuchberger_decls.h"
#include "slice_decls.h"
#define NUMPROJ_BASE 10
#define NUMPROJ_INCREMENT 5
struct resolutionRecord
{
group_t *group;
char *stem;
char *moduleStem;
long numproj, numproj_alloc;
long *projrank; /* projrank[n] = free rank of nth projective */
long *Imdim; /* Imdim[n] = dim of Im d_n (which is a submod of P_{n-1}) */
};
typedef struct resolutionRecord resol_t;
char *differentialFile(resol_t *resol, long n);
/* String returned must be used at once, never reused, never freed. */
/* Represents d_n : P_n -> P_{n-1} */
char *urbildGBFile(resol_t *resol, long n);
/* String returned must be used at once, never reused, never freed. */
/* Represents urbild Groebner basis for d_n : P_n -> P_{n-1} */
nRgs_t *nRgsStandardSetup(resol_t *resol, long n, PTR mat);
/* mat should be a block of length rankProj(resol, n-1) x rankProj(resol, n) */
resol_t *newResolWithGroupLoaded (char *RStem, char *GStem, long N);
void freeResolutionRecord(resol_t *resol);
int setRankProj(resol_t *resol, long n, long r);
Matrix_t *makeFirstDifferential(resol_t *resol);
nRgs_t *loadUrbildGroebnerBasis(resol_t *resol, long n);
int innerPreimages(nRgs_t *nRgs, PTR images, long noi, group_t *group,
PTR preimages);
#endif