Changeset 4763e2 in git for kernel


Ignore:
Timestamp:
Oct 10, 2016, 7:27:50 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b6850332257d4e1a4479e878883bd0141e1dfa54
Parents:
e0328f3e0ed521d91b54b0ac2f870d02b0f0ab23
Message:
rename TObject_max to TObjec->max_exp
Location:
kernel/GBEngine
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kInline.h

    re0328f r4763e2  
    376376    }
    377377  }
    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);
    391385  }
    392386  tailRing = new_tailRing;
  • kernel/GBEngine/kspoly.cc

    re0328f r4763e2  
    111111  {
    112112    // 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))
    114114    {
    115115      // undo changes of lm
     
    243243  {
    244244    // 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))
    246246    {
    247247      // undo changes of lm
     
    449449  {
    450450    // 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))
    452452    {
    453453      // undo changes of lm
     
    699699  {
    700700    // 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))
    702702    {
    703703      // undo changes of lm
  • kernel/GBEngine/kstdfac.cc

    re0328f r4763e2  
    5757    }
    5858    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); ??
    6060    t[j].pLength =  pLength(p);
    6161  }
  • kernel/GBEngine/kutil.cc

    re0328f r4763e2  
    279279            pNext(L->p) = NULL;
    280280          }
    281           L->max  = NULL;
     281          L->max_exp  = NULL;
    282282        }
    283283        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;
    285285        //if (L->pLength != 0)
    286286        L->pLength = l;
     
    388388        //if (L->pLength > 0)
    389389        L->pLength = 1;
    390         L->max = NULL;
     390        L->max_exp = NULL;
    391391
    392392        if (L->t_p != NULL && pNext(L->t_p) != NULL)
     
    448448        //if (L->pLength > 0)
    449449        L->pLength = 1;
    450         L->max = NULL;
     450        L->max_exp = NULL;
    451451
    452452        if (L->t_p != NULL && pNext(L->t_p) != NULL)
     
    564564    p = strat->T[j].p;
    565565    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);
    569569    }
    570570    i = -1;
     
    615615    p = strat->T[j].p;
    616616    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);
    620620    }
    621621    i = -1;
     
    804804      if (pNext(T->t_p) == NULL)
    805805      {
    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);
    808808      }
    809809      else
    810810      {
    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);
    818818#if KDEBUG > 0
    819819        if (! sloppy_max)
    820820        {
    821821          poly test_max = p_GetMaxExpP(pNext(T->t_p), tailRing);
    822           p_Setm(T->max, tailRing);
     822          p_Setm(T->max_exp, tailRing);
    823823          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);
    825825          if (! equal)
    826826            return dReportError("%c[%d].max out of sync", TN, i);
     
    95469546  //printf("\nenterT: neue hingefÃŒgt: lÀnge = %i, ecart = %i\n",p.length,p.ecart);
    95479547
    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);
    95509550  else
    9551     strat->T[atT].max = NULL;
     9551    strat->T[atT].max_exp = NULL;
    95529552
    95539553  strat->tl++;
     
    96329632  //printf("\nenterT_strong: neue hingefÃŒgt: lÀnge = %i, ecart = %i\n",p.length,p.ecart);
    96339633
    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);
    96369636  else
    9637     strat->T[atT].max = NULL;
     9637    strat->T[atT].max_exp = NULL;
    96389638
    96399639  strat->tl++;
     
    1067510675      #endif
    1067610676
    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);
    1068010680        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);
    1068210682        else
    10683           T_j->max = NULL;
     10683          T_j->max_exp = NULL;
    1068410684      }
    1068510685      if (TEST_OPT_INTSTRATEGY)
     
    1082710827    return TRUE;
    1082810828  }
    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;
    1083110831
    1083210832  if (((p1_max != NULL) && !p_LmExpVectorAddIsOk(m1, p1_max, strat->tailRing)) ||
     
    1085410854  //assume(strat->tailRing != currRing);
    1085510855
    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;
    1085810858
    1085910859  if (((p1_max != NULL) && !p_LmExpVectorAddIsOk(m1, p1_max, strat->tailRing)) ||
     
    1132311323      L->p = t_l->p;
    1132411324      L->t_p = t_l->t_p;
    11325       L->max = t_l->max;
     11325      L->max_exp = t_l->max_exp;
    1132611326    }
    1132711327  }
     
    1273612736    qq      = p; //qq.Copy();
    1273712737    qq.p    = NULL;
    12738     qq.max  = NULL;
     12738    qq.max_exp  = NULL;
    1273912739    qq.t_p = p_LPshift(p_Copy(p.t_p,strat->tailRing), i, uptodeg, lV, strat->tailRing); // direct shift
    1274012740    qq.GetP();
  • kernel/GBEngine/kutil.h

    re0328f r4763e2  
    7575  poly p;       // Lm(p) \in currRing Tail(p) \in tailRing
    7676  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))
    7878  ring tailRing;
    7979  long FDeg;    // pFDeg(p)
Note: See TracChangeset for help on using the changeset viewer.