- Timestamp:
- Oct 10, 2016, 7:27:50 PM (8 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b6850332257d4e1a4479e878883bd0141e1dfa54
- Parents:
- e0328f3e0ed521d91b54b0ac2f870d02b0f0ab23
- Location:
- kernel/GBEngine
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kInline.h
re0328f r4763e2 376 376 } 377 377 } 378 if (max != NULL) 379 { 380 if (new_tailRing == currRing) 381 { 382 p_LmFree(max, tailRing); 383 max = NULL; 384 } 385 else 386 max = p_shallow_copy_delete(max,tailRing,new_tailRing,new_tailBin); 387 } 388 else if (set_max && new_tailRing != currRing && pNext(t_p) != NULL) 389 { 390 max = p_GetMaxExpP(pNext(t_p), new_tailRing); 378 if (max_exp != NULL) 379 { 380 max_exp = p_shallow_copy_delete(max_exp,tailRing,new_tailRing,new_tailBin); 381 } 382 else if (set_max && pNext(t_p) != NULL) 383 { 384 max_exp = p_GetMaxExpP(pNext(t_p), new_tailRing); 391 385 } 392 386 tailRing = new_tailRing; -
kernel/GBEngine/kspoly.cc
re0328f r4763e2 111 111 { 112 112 // check that reduction does not violate exp bound 113 while (PW->max != NULL && !p_LmExpVectorAddIsOk(lm, PW->max, tailRing))113 while (PW->max_exp != NULL && !p_LmExpVectorAddIsOk(lm, PW->max_exp, tailRing)) 114 114 { 115 115 // undo changes of lm … … 243 243 { 244 244 // check that reduction does not violate exp bound 245 while (PW->max != NULL && !p_LmExpVectorAddIsOk(lm, PW->max, tailRing))245 while (PW->max_exp != NULL && !p_LmExpVectorAddIsOk(lm, PW->max_exp, tailRing)) 246 246 { 247 247 // undo changes of lm … … 449 449 { 450 450 // check that reduction does not violate exp bound 451 while (PW->max != NULL && !p_LmExpVectorAddIsOk(lm, PW->max, tailRing))451 while (PW->max_exp != NULL && !p_LmExpVectorAddIsOk(lm, PW->max_exp, tailRing)) 452 452 { 453 453 // undo changes of lm … … 699 699 { 700 700 // check that reduction does not violate exp bound 701 while (PW->max != NULL && !p_LmExpVectorAddIsOk(lm, PW->max, tailRing))701 while (PW->max_exp != NULL && !p_LmExpVectorAddIsOk(lm, PW->max_exp, tailRing)) 702 702 { 703 703 // undo changes of lm -
kernel/GBEngine/kstdfac.cc
re0328f r4763e2 57 57 } 58 58 t[j].t_p = NULL; // ?? or t[j].p ?? 59 t[j].max = NULL; // ?? or p_GetMaxExpP(t[j].t_p,o->tailRing); ??59 t[j].max_exp = NULL; // ?? or p_GetMaxExpP(t[j].t_p,o->tailRing); ?? 60 60 t[j].pLength = pLength(p); 61 61 } -
kernel/GBEngine/kutil.cc
re0328f r4763e2 279 279 pNext(L->p) = NULL; 280 280 } 281 L->max = NULL;281 L->max_exp = NULL; 282 282 } 283 283 else if (fromNext) 284 L->max = p_GetMaxExpP(pNext(L->p), L->tailRing ); // p1;284 L->max_exp = p_GetMaxExpP(pNext(L->p), L->tailRing ); // p1; 285 285 //if (L->pLength != 0) 286 286 L->pLength = l; … … 388 388 //if (L->pLength > 0) 389 389 L->pLength = 1; 390 L->max = NULL;390 L->max_exp = NULL; 391 391 392 392 if (L->t_p != NULL && pNext(L->t_p) != NULL) … … 448 448 //if (L->pLength > 0) 449 449 L->pLength = 1; 450 L->max = NULL;450 L->max_exp = NULL; 451 451 452 452 if (L->t_p != NULL && pNext(L->t_p) != NULL) … … 564 564 p = strat->T[j].p; 565 565 strat->T[j].p=NULL; 566 if (strat->T[j].max != NULL)567 { 568 p_LmFree(strat->T[j].max , strat->tailRing);566 if (strat->T[j].max_exp != NULL) 567 { 568 p_LmFree(strat->T[j].max_exp, strat->tailRing); 569 569 } 570 570 i = -1; … … 615 615 p = strat->T[j].p; 616 616 strat->T[j].p=NULL; 617 if (strat->T[j].max != NULL)618 { 619 p_LmFree(strat->T[j].max , strat->tailRing);617 if (strat->T[j].max_exp != NULL) 618 { 619 p_LmFree(strat->T[j].max_exp, strat->tailRing); 620 620 } 621 621 i = -1; … … 804 804 if (pNext(T->t_p) == NULL) 805 805 { 806 if (T->max != NULL)807 return dReportError("%c[%d].max is not NULL as it should be", TN, i);806 if (T->max_exp != NULL) 807 return dReportError("%c[%d].max_exp is not NULL as it should be", TN, i); 808 808 } 809 809 else 810 810 { 811 if (T->max == NULL)812 return dReportError("%c[%d].max is NULL", TN, i);813 if (pNext(T->max ) != NULL)814 return dReportError("pNext(%c[%d].max ) != NULL", TN, i);815 816 pFalseReturn(p_CheckPolyRing(T->max , tailRing));817 omCheckBinAddrSize(T->max , (omSizeWOfBin(tailRing->PolyBin))*SIZEOF_LONG);811 if (T->max_exp == NULL) 812 return dReportError("%c[%d].max_exp is NULL", TN, i); 813 if (pNext(T->max_exp) != NULL) 814 return dReportError("pNext(%c[%d].max_exp) != NULL", TN, i); 815 816 pFalseReturn(p_CheckPolyRing(T->max_exp, tailRing)); 817 omCheckBinAddrSize(T->max_exp, (omSizeWOfBin(tailRing->PolyBin))*SIZEOF_LONG); 818 818 #if KDEBUG > 0 819 819 if (! sloppy_max) 820 820 { 821 821 poly test_max = p_GetMaxExpP(pNext(T->t_p), tailRing); 822 p_Setm(T->max , tailRing);822 p_Setm(T->max_exp, tailRing); 823 823 p_Setm(test_max, tailRing); 824 BOOLEAN equal = p_ExpVectorEqual(T->max , test_max, tailRing);824 BOOLEAN equal = p_ExpVectorEqual(T->max_exp, test_max, tailRing); 825 825 if (! equal) 826 826 return dReportError("%c[%d].max out of sync", TN, i); … … 9546 9546 //printf("\nenterT: neue hingefÃŒgt: lÀnge = %i, ecart = %i\n",p.length,p.ecart); 9547 9547 9548 if ( strat->tailRing != currRing &&pNext(p.p) != NULL)9549 strat->T[atT].max = p_GetMaxExpP(pNext(p.p), strat->tailRing);9548 if (pNext(p.p) != NULL) 9549 strat->T[atT].max_exp = p_GetMaxExpP(pNext(p.p), strat->tailRing); 9550 9550 else 9551 strat->T[atT].max = NULL;9551 strat->T[atT].max_exp = NULL; 9552 9552 9553 9553 strat->tl++; … … 9632 9632 //printf("\nenterT_strong: neue hingefÃŒgt: lÀnge = %i, ecart = %i\n",p.length,p.ecart); 9633 9633 9634 if ( strat->tailRing != currRing &&pNext(p.p) != NULL)9635 strat->T[atT].max = p_GetMaxExpP(pNext(p.p), strat->tailRing);9634 if (pNext(p.p) != NULL) 9635 strat->T[atT].max_exp = p_GetMaxExpP(pNext(p.p), strat->tailRing); 9636 9636 else 9637 strat->T[atT].max = NULL;9637 strat->T[atT].max_exp = NULL; 9638 9638 9639 9639 strat->tl++; … … 10675 10675 #endif 10676 10676 10677 if (strat->redTailChange && strat->tailRing != currRing)10678 { 10679 if (T_j->max != NULL) p_LmFree(T_j->max, strat->tailRing);10677 if (strat->redTailChange) 10678 { 10679 if (T_j->max_exp != NULL) p_LmFree(T_j->max_exp, strat->tailRing); 10680 10680 if (pNext(T_j->p) != NULL) 10681 T_j->max = p_GetMaxExpP(pNext(T_j->p), strat->tailRing);10681 T_j->max_exp = p_GetMaxExpP(pNext(T_j->p), strat->tailRing); 10682 10682 else 10683 T_j->max = NULL;10683 T_j->max_exp = NULL; 10684 10684 } 10685 10685 if (TEST_OPT_INTSTRATEGY) … … 10827 10827 return TRUE; 10828 10828 } 10829 poly p1_max = (strat->R[L->i_r1])->max ;10830 poly p2_max = (strat->R[L->i_r2])->max ;10829 poly p1_max = (strat->R[L->i_r1])->max_exp; 10830 poly p2_max = (strat->R[L->i_r2])->max_exp; 10831 10831 10832 10832 if (((p1_max != NULL) && !p_LmExpVectorAddIsOk(m1, p1_max, strat->tailRing)) || … … 10854 10854 //assume(strat->tailRing != currRing); 10855 10855 10856 poly p1_max = (strat->R[atR])->max ;10857 poly p2_max = (strat->R[strat->S_2_R[atS]])->max ;10856 poly p1_max = (strat->R[atR])->max_exp; 10857 poly p2_max = (strat->R[strat->S_2_R[atS]])->max_exp; 10858 10858 10859 10859 if (((p1_max != NULL) && !p_LmExpVectorAddIsOk(m1, p1_max, strat->tailRing)) || … … 11323 11323 L->p = t_l->p; 11324 11324 L->t_p = t_l->t_p; 11325 L->max = t_l->max;11325 L->max_exp = t_l->max_exp; 11326 11326 } 11327 11327 } … … 12736 12736 qq = p; //qq.Copy(); 12737 12737 qq.p = NULL; 12738 qq.max = NULL;12738 qq.max_exp = NULL; 12739 12739 qq.t_p = p_LPshift(p_Copy(p.t_p,strat->tailRing), i, uptodeg, lV, strat->tailRing); // direct shift 12740 12740 qq.GetP(); -
kernel/GBEngine/kutil.h
re0328f r4763e2 75 75 poly p; // Lm(p) \in currRing Tail(p) \in tailRing 76 76 poly t_p; // t_p \in tailRing: as monomials Lm(t_p) == Lm(p) 77 poly max ; // p_GetMaxExpP(pNext(p))77 poly max_exp; // p_GetMaxExpP(pNext(p)) 78 78 ring tailRing; 79 79 long FDeg; // pFDeg(p)
Note: See TracChangeset
for help on using the changeset viewer.