Changeset 1558d5 in git for kernel/gr_kstd2.cc
- Timestamp:
- Jul 25, 2011, 6:45:32 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- b7cfaff1d9a4ec8364a64a54d2b7e009f91418e2
- Parents:
- 7b25fe96bd4a8e5c88b73cb0561e3b39b26d1981
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-07-25 18:45:32+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:53:34+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gr_kstd2.cc
r7b25fe r1558d5 56 56 int j = 0; 57 57 58 d = pFDeg((*h).p,currRing)+(*h).ecart;58 d = currRing->pFDeg((*h).p,currRing)+(*h).ecart; 59 59 reddeg = strat->LazyDegree+d; 60 60 loop … … 106 106 if (TEST_OPT_INTSTRATEGY) 107 107 { 108 if (rField_is_Zp_a( )) p_Content(h->p,currRing);108 if (rField_is_Zp_a(currRing)) p_Content(h->p,currRing); 109 109 else h->pCleardenom();// also does a p_Content 110 110 } 111 111 /*computes the ecart*/ 112 d = pLDeg((*h).p,&((*h).length),currRing);113 (*h).FDeg= pFDeg((*h).p,currRing);112 d = currRing->pLDeg((*h).p,&((*h).length),currRing); 113 (*h).FDeg=currRing->pFDeg((*h).p,currRing); 114 114 (*h).ecart = d-(*h).FDeg; /*pFDeg((*h).p);*/ 115 115 if ((strat->syzComp!=0) && !strat->honey) … … 232 232 233 233 ratGB_divide_out((*h).p); 234 d = pFDeg((*h).p,currRing)+(*h).ecart;234 d = currRing->pFDeg((*h).p,currRing)+(*h).ecart; 235 235 reddeg = strat->LazyDegree+d; 236 236 if (!TEST_OPT_INTSTRATEGY) 237 237 { 238 if (rField_is_Zp_a( )) p_Content(h->p,currRing);238 if (rField_is_Zp_a(currRing)) p_Content(h->p,currRing); 239 239 else h->pCleardenom();// also does a pContentRat 240 240 } … … 273 273 if (!TEST_OPT_INTSTRATEGY) 274 274 { 275 if (rField_is_Zp_a( )) p_Content(h->p,currRing);275 if (rField_is_Zp_a(currRing)) p_Content(h->p,currRing); 276 276 else h->pCleardenom();// also does a p_Content 277 277 } … … 291 291 } 292 292 ratGB_divide_out((*h).p); 293 d = pLDeg((*h).p,&((*h).length),currRing);294 (*h).FDeg= pFDeg((*h).p,currRing);293 d = currRing->pLDeg((*h).p,&((*h).length),currRing); 294 (*h).FDeg=currRing->pFDeg((*h).p,currRing); 295 295 (*h).ecart = d-(*h).FDeg; /*pFDeg((*h).p);*/ 296 296 /*- try to reduce the s-polynomial again -*/ … … 323 323 currRing->real_var_start,currRing->real_var_end)) 324 324 { 325 int a_e=(p_Totaldegree(strat->S[j],currRing)- pFDeg(strat->S[j],currRing));325 int a_e=(p_Totaldegree(strat->S[j],currRing)-currRing->pFDeg(strat->S[j],currRing)); 326 326 #ifdef KDEBUG 327 327 if(TEST_OPT_DEBUG) … … 472 472 if (TEST_OPT_INTSTRATEGY) 473 473 { 474 if (rField_is_Zp_a( )) p_Content(h->p,currRing);474 if (rField_is_Zp_a(currRing)) p_Content(h->p,currRing); 475 475 else h->pCleardenom();// also does a pContent 476 476 } … … 496 496 if (TEST_OPT_INTSTRATEGY) 497 497 { 498 if (rField_is_Zp_a( )) p_Content(h->p,currRing);498 if (rField_is_Zp_a(currRing)) p_Content(h->p,currRing); 499 499 else h->pCleardenom();// also does a p_Content 500 500 } … … 525 525 int j = 0; 526 526 int pass = 0; 527 int reddeg = pFDeg((*h).p,currRing);527 int reddeg = currRing->pFDeg((*h).p,currRing); 528 528 529 529 if (TEST_OPT_DEBUG) … … 578 578 /*- try to reduce the s-polynomial -*/ 579 579 pass++; 580 d = pFDeg((*h).p,currRing);580 d = currRing->pFDeg((*h).p,currRing); 581 581 if ((strat->Ll >= 0) && ((d > reddeg) || (pass > strat->LazyPass))) 582 582 { … … 616 616 if (TEST_OPT_INTSTRATEGY) 617 617 { 618 if (rField_is_Zp_a( )) p_Content(h->p,currRing);618 if (rField_is_Zp_a(currRing)) p_Content(h->p,currRing); 619 619 else h->pCleardenom();// also does a p_Content 620 620 } … … 644 644 645 645 pass = j = 0; 646 d = reddeg = pFDeg((*h).p,currRing)+(*h).ecart;646 d = reddeg = currRing->pFDeg((*h).p,currRing)+(*h).ecart; 647 647 if (TEST_OPT_DEBUG) 648 648 { … … 737 737 /* compute the ecart */ 738 738 if (ei <= (*h).ecart) 739 (*h).ecart = d- pFDeg((*h).p,currRing);739 (*h).ecart = d-currRing->pFDeg((*h).p,currRing); 740 740 else 741 (*h).ecart = d- pFDeg((*h).p,currRing)+ei-(*h).ecart;741 (*h).ecart = d-currRing->pFDeg((*h).p,currRing)+ei-(*h).ecart; 742 742 // if (strat->syzComp) 743 743 // { … … 759 759 */ 760 760 pass++; 761 d = pFDeg((*h).p,currRing)+(*h).ecart;761 d = currRing->pFDeg((*h).p,currRing)+(*h).ecart; 762 762 if ((strat->Ll >= 0) && ((d > reddeg) || (pass > strat->LazyPass))) 763 763 { … … 825 825 826 826 if (strat->honey) 827 reddeg = pFDeg((*h).p,currRing)+(*h).ecart;827 reddeg = currRing->pFDeg((*h).p,currRing)+(*h).ecart; 828 828 else 829 reddeg = pFDeg((*h).p,currRing);829 reddeg = currRing->pFDeg((*h).p,currRing); 830 830 loop 831 831 { … … 924 924 { 925 925 pass++; 926 d = pFDeg((*h).p,currRing);926 d = currRing->pFDeg((*h).p,currRing); 927 927 if (strat->honey) 928 928 d += (*h).ecart; … … 1017 1017 // { 1018 1018 // //interred machen Aenderung 1019 // pFDegOld= pFDeg;1020 // pLDegOld= pLDeg;1019 // pFDegOld=currRing->pFDeg; 1020 // pLDegOld=currRing->pLDeg; 1021 1021 // // h=ggetid("ecart"); 1022 1022 // // if ((h!=NULL) && (IDTYP(h)==INTVEC_CMD)) … … 1030 1030 // kEcartWeights(F->m,IDELEMS(F)-1,ecartWeights); 1031 1031 // } 1032 // pFDeg=totaldegreeWecart;1033 // pLDeg=maxdegreeWecart;1032 // currRing->pFDeg=totaldegreeWecart; 1033 // currRing->pLDeg=maxdegreeWecart; 1034 1034 // for(i=1; i<=(currRing->N); i++) 1035 1035 // Print(" %d",ecartWeights[i]); … … 1096 1096 if (TEST_OPT_DEGBOUND 1097 1097 && ((strat->honey 1098 && (strat->L[strat->Ll].ecart+ pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))1099 || ((!strat->honey) && ( pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))))1098 && (strat->L[strat->Ll].ecart+currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)) 1099 || ((!strat->honey) && (currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)))) 1100 1100 { 1101 1101 /* … … 1277 1277 /* release temp data-------------------------------- */ 1278 1278 exitBuchMora(strat); 1279 if (TEST_OPT_WEIGHTM)1280 {1281 1282 1283 if (ecartWeights)1284 {1285 omFreeSize((ADDRESS)ecartWeights,((currRing->N)+1)*sizeof(short));1286 ecartWeights=NULL;1287 }1288 }1279 // if (TEST_OPT_WEIGHTM) 1280 // { 1281 // currRing->pFDeg=pFDegOld; 1282 // currRing->pLDeg=pLDegOld; 1283 // if (ecartWeights) 1284 // { 1285 // omFreeSize((ADDRESS)ecartWeights,((currRing->N)+1)*sizeof(short)); 1286 // ecartWeights=NULL; 1287 // } 1288 // } 1289 1289 if (TEST_OPT_PROT) messageStat(srmax,lrmax,hilbcount,strat); 1290 1290 if (Q!=NULL) updateResult(strat->Shdl,Q,strat);
Note: See TracChangeset
for help on using the changeset viewer.