Changeset 0a7dbb8 in git
- Timestamp:
- May 31, 2003, 4:13:42 PM (21 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 6e365276f16e9011f5e59f6826818c488b3f568a
- Parents:
- 3a218a195e51a92cd2ba37146f5129e3d85d99b5
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/kutil.cc
r3a218a r0a7dbb8 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.12 0 2003-05-26 13:09:34Singular Exp $ */4 /* $Id: kutil.cc,v 1.121 2003-05-31 14:13:33 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 244 244 int i; 245 245 poly h; 246 247 if(currRing->OrdSgn != -1) return; 248 if(TEST_OPT_CANCELUNIT) return; 249 246 250 ring r = L->tailRing; 247 248 251 poly p = L->GetLmTailRing(); 249 252 … … 2929 2932 else if (red_result < 0) 2930 2933 PrintS("."); 2931 else2934 if ((red_result > 0) || ((strat->Ll % 100)==99)) 2932 2935 { 2933 2936 if (strat->Ll != *reduc && strat->Ll > 0) … … 3195 3198 int i,pos; 3196 3199 3197 if (Q!=NULL) i= IDELEMS(Q);3198 else i= 0;3200 if (Q!=NULL) i=((IDELEMS(Q)+(setmaxTinc-1))/setmaxTinc)*setmaxTinc; 3201 else i=setmaxT; 3199 3202 i=((i+IDELEMS(F)+15)/16)*16; 3200 3203 strat->ecartS=initec(i); … … 3356 3359 *tests if p.p=monomial*unit and cancels the unit 3357 3360 */ 3358 void cancelunit1 (LObject* p,int index,kStrategy strat )3361 void cancelunit1 (LObject* p,int *suc, int index,kStrategy strat ) 3359 3362 { 3360 3363 int k; … … 3374 3377 (*p).ecart = 0; 3375 3378 (*p).length = 1; 3379 (*suc)=0; 3376 3380 return; 3377 3381 } … … 3569 3573 for (i=0; i<=strat->sl; i++) 3570 3574 { 3571 if (( (strat->fromQ==NULL) || (strat->fromQ[i]==0))3572 )3575 if ((strat->fromQ==NULL) || (strat->fromQ[i]==0)) 3576 { 3573 3577 h.p = redtailBba(strat->S[i],i-1,strat); 3578 if (TEST_OPT_INTSTRATEGY) 3579 { 3580 pCleardenom(h.p);// also does a pContent 3581 } 3582 } 3574 3583 else 3575 3584 { … … 3595 3604 while (suc != -1) 3596 3605 { 3597 i=suc +1;3606 i=suc; 3598 3607 while (i<=strat->sl) 3599 3608 { … … 3666 3675 } 3667 3676 if ((strat->fromQ==NULL) || (strat->fromQ[i]==0)) 3668 cancelunit1(&h, strat->sl,strat);3677 cancelunit1(&h,&suc,strat->sl,strat); 3669 3678 h.length = pLength(h.p); 3670 3679 h.SetpFDeg(); … … 3673 3682 strat->S_2_R[i] = strat->tl; 3674 3683 } 3684 if (suc!= -1) updateS(toT,strat); 3675 3685 } 3676 3686 if (redSi!=NULL) pDeleteLm(&redSi); -
Singular/tok.h
r3a218a r0a7dbb8 7 7 * ABSTRACT: tokens, types for interpreter; general macros 8 8 */ 9 /* $Id: tok.h,v 1.5 4 2002-12-13 16:19:15Singular Exp $ */9 /* $Id: tok.h,v 1.55 2003-05-31 14:13:42 Singular Exp $ */ 10 10 11 11 #ifndef MYYSTYPE … … 186 186 #define V_NSB 14 187 187 #define V_CONTENTSB 15 188 #define V_CANCELUNIT 16 188 189 #define V_DEG_STOP 31 189 190 … … 236 237 #define TEST_OPT_OLDSTD BTEST1(OPT_OLDSTD) 237 238 #define TEST_OPT_CONTENTSB BVERBOSE(V_CONTENTSB) 239 #define TEST_OPT_CANCELUNIT BVERBOSE(V_CANCELUNIT) 238 240 239 241 #define TEST_VERB_NSB BVERBOSE(V_NSB)
Note: See TracChangeset
for help on using the changeset viewer.