[0e1846] | 1 | #ifndef SYZ_H |
---|
| 2 | #define SYZ_h |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
[25003c] | 6 | /* $Id: syz.h,v 1.8 1998-04-29 07:05:30 siebert 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 length; |
---|
| 31 | int ** truecomponents; |
---|
| 32 | int ** backcomponents; |
---|
| 33 | int ** Howmuch; |
---|
| 34 | int ** Firstelem; |
---|
[25003c] | 35 | intvec ** weights; |
---|
[dfc6b54] | 36 | resolvente res; |
---|
| 37 | resolvente orderedRes; |
---|
| 38 | SRes resPairs; |
---|
| 39 | intvec * Tl; |
---|
| 40 | resolvente fullres; |
---|
| 41 | resolvente minres; |
---|
| 42 | int references; |
---|
| 43 | int * binom; |
---|
| 44 | int highdeg_1; |
---|
| 45 | intvec * resolution; |
---|
[7a30b9] | 46 | intvec * cw; |
---|
[dfc6b54] | 47 | }; |
---|
| 48 | |
---|
[0e1846] | 49 | void sySchreyersSyzygiesM(polyset F,int Fmax,polyset* Shdl,int* Smax, |
---|
| 50 | BOOLEAN noSort); |
---|
| 51 | |
---|
| 52 | void sySchreyersSyzygiesB(polyset F,int Fmax,polyset* Shdl,int* Smax, |
---|
| 53 | BOOLEAN noSort); |
---|
| 54 | |
---|
| 55 | resolvente sySchreyerResolvente(ideal arg, int maxlength, int * length, |
---|
[66415e1] | 56 | BOOLEAN isMonomial=FALSE, BOOLEAN notReplace=FALSE); |
---|
[0e1846] | 57 | |
---|
[25003c] | 58 | syStrategy sySchreyer(ideal arg, int maxlength); |
---|
| 59 | |
---|
[0e1846] | 60 | resolvente syResolvente(ideal arg, int maxlength, int * length, |
---|
| 61 | intvec *** weights, BOOLEAN minim); |
---|
| 62 | |
---|
[25003c] | 63 | syStrategy syResolution(ideal arg, int maxlength,intvec * w, BOOLEAN minim); |
---|
| 64 | |
---|
[0e1846] | 65 | resolvente syMinRes(ideal arg, int maxlength, int * length, BOOLEAN minim); |
---|
| 66 | |
---|
| 67 | void syMinimizeResolvente(resolvente res, int length, int first); |
---|
| 68 | |
---|
| 69 | intvec * syBetti(resolvente res,int length, int * regularity, |
---|
| 70 | intvec* weights=NULL); |
---|
| 71 | |
---|
| 72 | ideal syMinBase(ideal arg); |
---|
| 73 | |
---|
| 74 | BOOLEAN syTestOrder(ideal i); |
---|
| 75 | |
---|
[66415e1] | 76 | void syReOrderResolventFB(resolvente res,int length, int initial=1); |
---|
| 77 | |
---|
| 78 | resolvente syLaScala1(ideal arg,int * length); |
---|
[dfc6b54] | 79 | syStrategy syLaScala3(ideal arg,int * length); |
---|
[66415e1] | 80 | |
---|
[dfc6b54] | 81 | void syKillComputation(syStrategy syzstr); |
---|
| 82 | intvec * syBettiOfComputation(syStrategy syzstr); |
---|
| 83 | int syLength(syStrategy syzstr); |
---|
| 84 | int sySize(syStrategy syzstr); |
---|
| 85 | int syDim(syStrategy syzstr); |
---|
| 86 | syStrategy syCopy(syStrategy syzstr); |
---|
| 87 | void syPrint(syStrategy syzstr); |
---|
| 88 | lists syConvRes(syStrategy syzstr); |
---|
| 89 | syStrategy syConvList(lists li); |
---|
| 90 | syStrategy syForceMin(lists li); |
---|
| 91 | syStrategy syMinimize(syStrategy syzstr); |
---|
[0e1846] | 92 | #endif |
---|