Changeset c6a876 in git


Ignore:
Timestamp:
Aug 12, 2016, 3:59:29 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
e009effbfaa9d4f42b1ec6659250bc3481449fb5
Parents:
0c669f797f1425a0c889419c6dcb158f6278afa1
Message:
chg: format, minor opt.
Location:
kernel/GBEngine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd1.cc

    r0c669f rc6a876  
    17651765      printf("\nBefore Ll = %i\n", strat->Ll);
    17661766      #endif
    1767       if(!rField_is_Ring(strat->tailRing) || rHasLocalOrMixedOrdering(currRing))
    1768         red_result = strat->red(&strat->P,strat);
     1767      red_result = strat->red(&strat->P,strat);
    17691768      #ifdef ADIDEBUG
    17701769      printf("\nThis is P nach red:\n");p_Write(strat->P.p,strat->tailRing);p_Write(strat->P.p1,strat->tailRing);p_Write(strat->P.p2,strat->tailRing);
     
    18411840      if (strat->P.lcm!=NULL)
    18421841      {
    1843         if (rField_is_Ring(currRing)) 
     1842        if (rField_is_Ring(currRing))
    18441843          pLmDelete(strat->P.lcm);
    18451844        else
     
    25612560    //This is how we set the SBA algorithm;
    25622561    int totalsbaruns = 1,blockedreductions = 20,blockred = 0,loops = 0;
    2563     while(sigdrop && (loops < totalsbaruns || totalsbaruns == -1) 
     2562    while(sigdrop && (loops < totalsbaruns || totalsbaruns == -1)
    25642563                  && (blockred <= blockedreductions))
    25652564    {
     
    26792678            r=sba(r,Q,*w,hilb,strat);
    26802679          else
    2681           { 
     2680          {
    26822681            r=sba(r,Q,NULL,hilb,strat);
    26832682          }
  • kernel/GBEngine/kutil.cc

    r0c669f rc6a876  
    1313
    1414//#define ADIDEBUG 1
    15 //All vs Just strategy over rings: 
    16 // 1 - Just 
     15//All vs Just strategy over rings:
     16// 1 - Just
    1717// 0 - All
    1818#define ALL_VS_JUST 0
     
    582582        {
    583583          pDelete(&p);
    584           p = NULL;
    585584        }
    586585        break;
     
    17691768
    17701769  pNext(gcd) = p_Add_q(pp_Mult_mm(pNext(p), m1, strat->tailRing), pp_Mult_mm(pNext(si), m2, strat->tailRing), strat->tailRing);
    1771  
     1770
    17721771#ifdef KDEBUG
    17731772  if (TEST_OPT_DEBUG)
     
    18571856    h.p = pNeg(h.p);
    18581857  }
    1859  
     1858
    18601859    if(rField_is_Ring(currRing) &&  pLtCmp(h.sig,sig) == -1)
    18611860    {
     
    27682767  pWrite(m2);
    27692768#endif
    2770  
     2769
    27712770  // get multiplied signatures for testing
    27722771  pSigMult = pp_Mult_mm(pSigMult,m1,currRing);
     
    28752874    Lp.sevSig = p_GetShortExpVector(Lp.sig,currRing);
    28762875  }
    2877  
    2878   #if 0 
     2876
     2877  #if 0
    28792878  if(sigCmp==0)
    28802879  {
     
    48314830          return;
    48324831        }
    4833        
     4832
    48344833      }
    48354834      #else
     
    52275226    int o = p_Deg(p,currRing);
    52285227    int op = p_Deg(set[mon],currRing);
    5229    
     5228
    52305229    if ((op < o)
    52315230    || ((op == o) && (pLtCmp(set[mon],p) == -1)))
     
    52575256    int o = p_Deg(p,currRing);
    52585257    int op = p_Deg(set[length],currRing);
    5259    
     5258
    52605259    if ((op < o)
    52615260    || ((op == o) && (pLtCmp(set[length],p) == -1)))
     
    71387137#endif
    71397138    if (p_LmShortDivisibleBy(strat->syz[k], strat->sevSyz[k], sig, not_sevSig, currRing)
    7140     && (!rField_is_Ring(currRing) || 
     7139    && (!rField_is_Ring(currRing) ||
    71417140    (n_DivBy(pGetCoeff(sig), pGetCoeff(strat->syz[k]),currRing) && pLtCmp(sig,strat->syz[k]) == 1)))
    71427141    {
     
    71957194#endif
    71967195      if (p_LmShortDivisibleBy(strat->syz[k], strat->sevSyz[k], sig, not_sevSig, currRing)
    7197       && (!rField_is_Ring(currRing) || 
     7196      && (!rField_is_Ring(currRing) ||
    71987197      (n_DivBy(pGetCoeff(sig), pGetCoeff(strat->syz[k]),currRing) && pLtCmp(sig,strat->syz[k]) == 1)))
    71997198      {
     
    96159614                              strat->L[cc].sig, ~strat->L[cc].sevSig, currRing)
    96169615                              #ifdef HAVE_RINGS
    9617                               &&((!rField_is_Ring(currRing)) 
     9616                              &&((!rField_is_Ring(currRing))
    96189617                              || (n_DivBy(pGetCoeff(strat->L[cc].sig),pGetCoeff(strat->syz[atT]),currRing) && (pLtCmp(strat->L[cc].sig,strat->syz[atT])==1)))
    96199618                              #endif
     
    1107111070  if(deleted)
    1107211071    strat->initEcart(h);
    11073  
     11072
    1107411073}
    1107511074
     
    1188711886  // clean h.p, get poly from t_p
    1188811887  pNext(h.p)=NULL;
    11889   pDelete(&h.p);
     11888  pLmDelete(&h.p);
    1189011889  p = prMoveR(h.t_p, /* source ring: */ strat->tailRing,
    1189111890                     /* dest. ring: */ currRing);
Note: See TracChangeset for help on using the changeset viewer.