Changeset e84421 in git
- Timestamp:
- Jul 25, 2011, 5:02:43 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- f32381cc5321a6e0dfafe932d999404e0190fd5c
- Parents:
- e533660f00e4b44288438fadc044c2920f73f40c
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-07-25 17:02:43+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:53:32+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstdfac.cc
re533660 re84421 253 253 BOOLEAN k_factorize(poly p,ideal &rfac, ideal &fac_copy) 254 254 { 255 int facdeg= pFDeg(p,currRing);256 ideal fac=singclap_factorize(pCopy(p),NULL,1 );255 int facdeg=currRing->pFDeg(p,currRing); 256 ideal fac=singclap_factorize(pCopy(p),NULL,1,currRing); 257 257 int fac_elems; 258 258 #ifndef HAVE_FACTORY … … 269 269 fac_copy=idInit(fac_elems,1); 270 270 271 if ((fac_elems!=1)||(facdeg!= pFDeg(fac->m[0],currRing)))271 if ((fac_elems!=1)||(facdeg!=currRing->pFDeg(fac->m[0],currRing))) 272 272 { 273 273 if (TEST_OPT_DEBUG) … … 568 568 if (TEST_OPT_DEGBOUND 569 569 && ((strat->honey 570 && (strat->L[strat->Ll].ecart+ pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))571 || ((!strat->honey) && ( pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))))570 && (strat->L[strat->Ll].ecart+currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)) 571 || ((!strat->honey) && (currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)))) 572 572 { 573 573 /* … … 594 594 { 595 595 if (TEST_OPT_PROT) 596 message(strat->P.ecart+ pFDeg(strat->P.p,currRing),&olddeg,&reduc,strat, red_result);596 message(strat->P.ecart+currRing->pFDeg(strat->P.p,currRing),&olddeg,&reduc,strat, red_result); 597 597 } 598 598 else 599 599 { 600 600 if (TEST_OPT_PROT) 601 message( pFDeg(strat->P.p,currRing),&olddeg,&reduc,strat, red_result);601 message(currRing->pFDeg(strat->P.p,currRing),&olddeg,&reduc,strat, red_result); 602 602 } 603 603 /* reduction of the element choosen from L */ … … 884 884 if (TEST_OPT_WEIGHTM) 885 885 { 886 pRestoreDegProcs( pFDegOld, pLDegOld);886 pRestoreDegProcs(currRing,pFDegOld, pLDegOld); 887 887 if (ecartWeights) 888 888 { … … 907 907 ideal_list L=NULL; 908 908 909 if (rField_has_simple_inverse( ))909 if (rField_has_simple_inverse(currRing)) 910 910 strat->LazyPass=20; 911 911 else 912 912 strat->LazyPass=2; 913 913 strat->LazyDegree = 1; 914 strat->ak = id RankFreeModule(F);914 strat->ak = id_RankFreeModule(F,currRing); 915 915 if ((h==testHomog)) 916 916 { … … 929 929 kModW = *w; 930 930 strat->kModW = *w; 931 pFDegOld = pFDeg;931 pFDegOld = currRing->pFDeg; 932 932 pLDegOld = pLDeg; 933 pSetDegProcs( kModDeg);933 pSetDegProcs(currRing,kModDeg); 934 934 toReset = TRUE; 935 935 } … … 1032 1032 if (toReset) 1033 1033 { 1034 pRestoreDegProcs( pFDegOld, pLDegOld);1034 pRestoreDegProcs(currRing,pFDegOld, pLDegOld); 1035 1035 kModW = NULL; 1036 1036 }
Note: See TracChangeset
for help on using the changeset viewer.