[0e1846] | 1 | #ifndef SYZ_H |
---|
| 2 | #define SYZ_h |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
[eb4bde] | 6 | /* $Id: syz.h,v 1.14 1999-06-08 07:57:13 Singular Exp $ */ |
---|
[0e1846] | 7 | /* |
---|
[dfc6b54] | 8 | * ABSTRACT: Resolutions |
---|
[0e1846] | 9 | */ |
---|
| 10 | #include "structs.h" |
---|
| 11 | |
---|
[66415e1] | 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 -*/ |
---|
[dfc6b54] | 18 | poly isNotMinimal; |
---|
| 19 | int syzind; |
---|
| 20 | int order; |
---|
[66415e1] | 21 | }; |
---|
| 22 | typedef struct sSObject SObject; |
---|
| 23 | typedef SObject * SSet; |
---|
| 24 | typedef SSet * SRes; |
---|
| 25 | |
---|
[dfc6b54] | 26 | class ssyStrategy; |
---|
| 27 | typedef ssyStrategy * syStrategy; |
---|
| 28 | class ssyStrategy{ |
---|
| 29 | public: |
---|
| 30 | int ** truecomponents; |
---|
| 31 | int ** backcomponents; |
---|
| 32 | int ** Howmuch; |
---|
| 33 | int ** Firstelem; |
---|
[25003c] | 34 | intvec ** weights; |
---|
[dfc6b54] | 35 | resolvente res; |
---|
| 36 | resolvente orderedRes; |
---|
| 37 | SRes resPairs; |
---|
| 38 | intvec * Tl; |
---|
| 39 | resolvente fullres; |
---|
| 40 | resolvente minres; |
---|
| 41 | int * binom; |
---|
| 42 | intvec * resolution; |
---|
[7a30b9] | 43 | intvec * cw; |
---|
[b83126e] | 44 | int highdeg_1; |
---|
| 45 | int length; |
---|
| 46 | short list_length; |
---|
| 47 | short references; |
---|
[dfc6b54] | 48 | }; |
---|
| 49 | |
---|
[0e1846] | 50 | void sySchreyersSyzygiesM(polyset F,int Fmax,polyset* Shdl,int* Smax, |
---|
| 51 | BOOLEAN noSort); |
---|
| 52 | |
---|
| 53 | void sySchreyersSyzygiesB(polyset F,int Fmax,polyset* Shdl,int* Smax, |
---|
| 54 | BOOLEAN noSort); |
---|
| 55 | |
---|
| 56 | resolvente sySchreyerResolvente(ideal arg, int maxlength, int * length, |
---|
[66415e1] | 57 | BOOLEAN isMonomial=FALSE, BOOLEAN notReplace=FALSE); |
---|
[0e1846] | 58 | |
---|
[25003c] | 59 | syStrategy sySchreyer(ideal arg, int maxlength); |
---|
| 60 | |
---|
[0e1846] | 61 | resolvente syResolvente(ideal arg, int maxlength, int * length, |
---|
| 62 | intvec *** weights, BOOLEAN minim); |
---|
| 63 | |
---|
[25003c] | 64 | syStrategy syResolution(ideal arg, int maxlength,intvec * w, BOOLEAN minim); |
---|
| 65 | |
---|
[0e1846] | 66 | resolvente syMinRes(ideal arg, int maxlength, int * length, BOOLEAN minim); |
---|
| 67 | |
---|
| 68 | void syMinimizeResolvente(resolvente res, int length, int first); |
---|
| 69 | |
---|
[8f1473] | 70 | resolvente syFastMin(resolvente res,int length); |
---|
| 71 | |
---|
[0e1846] | 72 | intvec * syBetti(resolvente res,int length, int * regularity, |
---|
| 73 | intvec* weights=NULL); |
---|
| 74 | |
---|
| 75 | ideal syMinBase(ideal arg); |
---|
| 76 | |
---|
| 77 | BOOLEAN syTestOrder(ideal i); |
---|
| 78 | |
---|
[66415e1] | 79 | void syReOrderResolventFB(resolvente res,int length, int initial=1); |
---|
| 80 | |
---|
| 81 | resolvente syLaScala1(ideal arg,int * length); |
---|
[dfc6b54] | 82 | syStrategy syLaScala3(ideal arg,int * length); |
---|
[66415e1] | 83 | |
---|
[dfc6b54] | 84 | void syKillComputation(syStrategy syzstr); |
---|
| 85 | intvec * syBettiOfComputation(syStrategy syzstr); |
---|
| 86 | int syLength(syStrategy syzstr); |
---|
| 87 | int sySize(syStrategy syzstr); |
---|
| 88 | int syDim(syStrategy syzstr); |
---|
| 89 | syStrategy syCopy(syStrategy syzstr); |
---|
| 90 | void syPrint(syStrategy syzstr); |
---|
[b982ef] | 91 | lists syConvRes(syStrategy syzstr,BOOLEAN toDel=FALSE); |
---|
| 92 | syStrategy syConvList(lists li,BOOLEAN toDel=FALSE); |
---|
[dfc6b54] | 93 | syStrategy syForceMin(lists li); |
---|
| 94 | syStrategy syMinimize(syStrategy syzstr); |
---|
[7ae776] | 95 | void syKillEmptyEntres(resolvente res,int length); |
---|
[8c8bea] | 96 | |
---|
[0e1846] | 97 | #endif |
---|