Changeset 05eb8c in git
- Timestamp:
- Feb 23, 2009, 11:59:20 AM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 0b4ec23736ea7397c933af3e20429dd4017d8ffe
- Parents:
- 6d5e7ee005c7a5c9c97446227e1b19c6ed68fc9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
r6d5e7ee r05eb8c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.12 1 2009-02-22 17:37:55Singular Exp $ */4 /* $Id: kutil.cc,v 1.122 2009-02-23 10:59:20 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 2877 2877 *(s[0],h),...,(s[k],h) will be put to the pairset L 2878 2878 */ 2879 void initenterpairsRing (poly h,int k,int ecart,int isFromQ,kStrategy strat, int atR = -1)2880 {2881 2882 if ((strat->syzComp==0) || (pGetComp(h)<=strat->syzComp))2883 {2884 int j;2885 BOOLEAN new_pair=FALSE;2886 2887 if (pGetComp(h)==0)2888 {2889 /* for Q!=NULL: build pairs (f,q),(f1,f2), but not (q1,q2)*/2890 if ((isFromQ)&&(strat->fromQ!=NULL))2891 {2892 for (j=0; j<=k; j++)2893 {2894 if (!strat->fromQ[j])2895 {2896 new_pair=TRUE;2897 Print("TODO Oliver 1 --- j:%d, Ll:%d\n",j,strat->Ll);2898 enterOnePairRing(j,h,ecart,isFromQ,strat, atR);2899 }2900 }2901 }2902 else2903 {2904 new_pair=TRUE;2905 for (j=0; j<=k; j++)2906 {2907 // Print("j:%d, Ll:%d\n",j,strat->Ll);2908 enterOnePairRing(j,h,ecart,isFromQ,strat, atR);2909 }2910 }2911 }2912 else2913 {2914 for (j=0; j<=k; j++)2915 {2916 if ((pGetComp(h)==pGetComp(strat->S[j])) || (pGetComp(strat->S[j])==0))2917 {2918 new_pair=TRUE;2919 // Print("j:%d, Ll:%d\n",j,strat->Ll);2920 // Modules not checked right now2921 enterOnePairRing(j,h,ecart,isFromQ,strat, atR);2922 }2923 }2924 }2925 2926 if (new_pair) chainCritRing(h,ecart,strat);2927 2928 }2929 /*2930 ring r=256,(x,y,z),dp;2931 ideal I=12xz-133y, 2xy-z;2932 */2933 2934 }2935 2936 /*22937 *(s[0],h),...,(s[k],h) will be put to the pairset L2938 */2939 2879 void initenterstrongPairs (poly h,int k,int ecart,int isFromQ,kStrategy strat, int atR = -1) 2940 2880 { … … 3089 3029 // enter also zero divisor * poly, if this is non zero and of smaller degree 3090 3030 if (!(rField_is_Domain(currRing))) enterExtendedSpoly(h, strat); 3091 initenterpairs Ring(h, k, ecart, 0, strat, atR);3031 initenterpairs(h, k, ecart, 0, strat, atR); 3092 3032 initenterstrongPairs(h, k, ecart, 0, strat, atR); 3093 3033 clearSbatch(h, k, pos, strat); … … 5601 5541 strat->enterOnePair=enterOnePairNormal; 5602 5542 strat->chainCrit=chainCritNormal; 5543 #ifdef HAVE_RINGS 5544 if (rField_is_Ring(currRing)) 5545 { 5546 strat->enterOnePair=enterOnePairRing; 5547 strat->chainCrit=chainCritRing; 5548 } 5549 #endif 5603 5550 5604 5551 strat->sugarCrit = TEST_OPT_SUGARCRIT;
Note: See TracChangeset
for help on using the changeset viewer.