Changeset b130fb in git for kernel/gr_kstd2.cc
- Timestamp:
- Feb 17, 2005, 10:42:23 AM (18 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 08db0a0dca2c73d19b0d83ba8110def246830498
- Parents:
- ecce503e3c38e63f043db34fbea817c3fc1fdc6c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gr_kstd2.cc
recce503 rb130fb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: gr_kstd2.cc,v 1. 4 2004-11-09 14:54:59Singular Exp $ */4 /* $Id: gr_kstd2.cc,v 1.5 2005-02-17 09:42:18 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: noncomm. alg. of Buchberger … … 50 50 int j = 0; 51 51 52 d = pFDeg((*h).p )+(*h).ecart;52 d = pFDeg((*h).p,currRing)+(*h).ecart; 53 53 reddeg = strat->LazyDegree+d; 54 54 loop … … 93 93 } 94 94 /*computes the ecart*/ 95 d = pLDeg((*h).p,&((*h).length) );96 (*h).FDeg=pFDeg((*h).p );95 d = pLDeg((*h).p,&((*h).length),currRing); 96 (*h).FDeg=pFDeg((*h).p,currRing); 97 97 (*h).ecart = d-(*h).FDeg; /*pFDeg((*h).p);*/ 98 98 if ((strat->syzComp!=0) && !strat->honey) … … 298 298 int j = 0; 299 299 int pass = 0; 300 int reddeg = pFDeg((*h).p );300 int reddeg = pFDeg((*h).p,currRing); 301 301 302 302 if (TEST_OPT_DEBUG) … … 343 343 /*- try to reduce the s-polynomial -*/ 344 344 pass++; 345 d = pFDeg((*h).p );345 d = pFDeg((*h).p,currRing); 346 346 if ((strat->Ll >= 0) && ((d > reddeg) || (pass > strat->LazyPass))) 347 347 { … … 409 409 410 410 pass = j = 0; 411 d = reddeg = pFDeg((*h).p )+(*h).ecart;411 d = reddeg = pFDeg((*h).p,currRing)+(*h).ecart; 412 412 if (TEST_OPT_DEBUG) 413 413 { … … 498 498 /* compute the ecart */ 499 499 if (ei <= (*h).ecart) 500 (*h).ecart = d-pFDeg((*h).p );500 (*h).ecart = d-pFDeg((*h).p,currRing); 501 501 else 502 (*h).ecart = d-pFDeg((*h).p )+ei-(*h).ecart;502 (*h).ecart = d-pFDeg((*h).p,currRing)+ei-(*h).ecart; 503 503 // if (strat->syzComp) 504 504 // { … … 520 520 */ 521 521 pass++; 522 d = pFDeg((*h).p )+(*h).ecart;522 d = pFDeg((*h).p,currRing)+(*h).ecart; 523 523 if ((strat->Ll >= 0) && ((d > reddeg) || (pass > strat->LazyPass))) 524 524 { … … 587 587 588 588 if (strat->honey) 589 reddeg = pFDeg((*h).p )+(*h).ecart;589 reddeg = pFDeg((*h).p,currRing)+(*h).ecart; 590 590 else 591 reddeg = pFDeg((*h).p );591 reddeg = pFDeg((*h).p,currRing); 592 592 loop 593 593 { … … 686 686 { 687 687 pass++; 688 d = pFDeg((*h).p );688 d = pFDeg((*h).p,currRing); 689 689 if (strat->honey) 690 690 d += (*h).ecart; … … 808 808 if (strat->Ll== 0) strat->interpt=TRUE; 809 809 if (TEST_OPT_DEGBOUND 810 && ((strat->honey && (strat->L[strat->Ll].ecart+pFDeg(strat->L[strat->Ll].p)>Kstd1_deg)) 811 || ((!strat->honey) && (pFDeg(strat->L[strat->Ll].p)>Kstd1_deg)))) 810 && ((strat->honey 811 && (strat->L[strat->Ll].ecart+pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)) 812 || ((!strat->honey) && (pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)))) 812 813 { 813 814 /* … … 887 888 if (strat->sl==-1) pos=0; 888 889 else pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart); 889 strat->enterS(strat->P,pos,strat );890 strat->enterS(strat->P,pos,strat,-1); 890 891 } 891 892 if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat);
Note: See TracChangeset
for help on using the changeset viewer.