1 | #ifndef SYZ_H |
---|
2 | #define SYZ_h |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* $Id: syz.h,v 1.6 1997-09-29 08:51:44 siebert Exp $ */ |
---|
7 | /* |
---|
8 | * ABSTRACT: Resolutions |
---|
9 | */ |
---|
10 | #include "structs.h" |
---|
11 | |
---|
12 | struct sSObject{ |
---|
13 | poly p; |
---|
14 | poly p1,p2; /*- the pair p comes from -*/ |
---|
15 | poly lcm; /*- the lcm of p1,p2 -*/ |
---|
16 | poly syz; /*- the syzygy associated to p1,p2 -*/ |
---|
17 | int ind1,ind2; /*- the indeces of p1,p2 -*/ |
---|
18 | poly isNotMinimal; |
---|
19 | int syzind; |
---|
20 | int order; |
---|
21 | }; |
---|
22 | typedef struct sSObject SObject; |
---|
23 | typedef SObject * SSet; |
---|
24 | typedef SSet * SRes; |
---|
25 | |
---|
26 | class ssyStrategy; |
---|
27 | typedef ssyStrategy * syStrategy; |
---|
28 | class ssyStrategy{ |
---|
29 | public: |
---|
30 | int length; |
---|
31 | int ** truecomponents; |
---|
32 | int ** backcomponents; |
---|
33 | int ** Howmuch; |
---|
34 | int ** Firstelem; |
---|
35 | resolvente res; |
---|
36 | resolvente orderedRes; |
---|
37 | SRes resPairs; |
---|
38 | intvec * Tl; |
---|
39 | resolvente fullres; |
---|
40 | resolvente minres; |
---|
41 | int references; |
---|
42 | int * binom; |
---|
43 | int highdeg_1; |
---|
44 | intvec * resolution; |
---|
45 | intvec * cw; |
---|
46 | }; |
---|
47 | |
---|
48 | void sySchreyersSyzygiesM(polyset F,int Fmax,polyset* Shdl,int* Smax, |
---|
49 | BOOLEAN noSort); |
---|
50 | |
---|
51 | void sySchreyersSyzygiesB(polyset F,int Fmax,polyset* Shdl,int* Smax, |
---|
52 | BOOLEAN noSort); |
---|
53 | |
---|
54 | resolvente sySchreyerResolvente(ideal arg, int maxlength, int * length, |
---|
55 | BOOLEAN isMonomial=FALSE, BOOLEAN notReplace=FALSE); |
---|
56 | |
---|
57 | resolvente syResolvente(ideal arg, int maxlength, int * length, |
---|
58 | intvec *** weights, BOOLEAN minim); |
---|
59 | |
---|
60 | resolvente syMinRes(ideal arg, int maxlength, int * length, BOOLEAN minim); |
---|
61 | |
---|
62 | void syMinimizeResolvente(resolvente res, int length, int first); |
---|
63 | |
---|
64 | intvec * syBetti(resolvente res,int length, int * regularity, |
---|
65 | intvec* weights=NULL); |
---|
66 | |
---|
67 | ideal syMinBase(ideal arg); |
---|
68 | |
---|
69 | BOOLEAN syTestOrder(ideal i); |
---|
70 | |
---|
71 | void syReOrderResolventFB(resolvente res,int length, int initial=1); |
---|
72 | |
---|
73 | resolvente syLaScala1(ideal arg,int * length); |
---|
74 | syStrategy syLaScala3(ideal arg,int * length); |
---|
75 | |
---|
76 | void syKillComputation(syStrategy syzstr); |
---|
77 | intvec * syBettiOfComputation(syStrategy syzstr); |
---|
78 | int syLength(syStrategy syzstr); |
---|
79 | int sySize(syStrategy syzstr); |
---|
80 | int syDim(syStrategy syzstr); |
---|
81 | syStrategy syCopy(syStrategy syzstr); |
---|
82 | void syPrint(syStrategy syzstr); |
---|
83 | lists syConvRes(syStrategy syzstr); |
---|
84 | syStrategy syConvList(lists li); |
---|
85 | syStrategy syForceMin(lists li); |
---|
86 | syStrategy syMinimize(syStrategy syzstr); |
---|
87 | #endif |
---|