Changeset 17c315 in git for kernel


Ignore:
Timestamp:
Mar 13, 2017, 4:42:06 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
af6ec6b981b52226441c782e44735843c61cfb5b
Parents:
a0707f8848846bae0b35b9436d54d36e5f3ccd43
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2017-03-13 16:42:06+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2017-03-13 16:44:45+01:00
Message:
p_Lcm -> p_polys.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    ra0707f8 r17c315  
    13221322#endif
    13231323  /*- computes the lcm(s[i],p) -*/
    1324   h.lcm = pInit();
     1324  h.lcm = p_Lcm(p,strat->S[i],currRing);
    13251325  pSetCoeff0(h.lcm, n_Lcm(pGetCoeff(p), pGetCoeff(strat->S[i]), currRing->cf));
    13261326  if (nIsZero(pGetCoeff(h.lcm)))
     
    13311331  }
    13321332  // basic chain criterion
    1333   pLcm(p,strat->S[i],h.lcm);
    1334   pSetm(h.lcm);
    1335     /*
     1333  /*
    13361334  *the set B collects the pairs of type (S[j],p)
    13371335  *suppose (r,p) is in B and (s,p) is the new pair and lcm(s,p) != lcm(r,p)
     
    19701968#elif defined(HAVE_RATGRING)
    19711969  if (rIsRatGRing(currRing))
    1972   pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift
     1970    pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift
    19731971  else
    1974   pLcm(p,strat->S[i],Lp.lcm);
     1972    pLcm(p,strat->S[i],Lp.lcm);
    19751973#endif
    19761974  pSetm(Lp.lcm);
     
    22382236  assume(i<=strat->sl);
    22392237
     2238  if ((strat->S[i]==NULL) || (p==NULL))
     2239    return;
     2240
    22402241  int      l,j,compare;
    22412242  LObject  Lp;
     
    22462247#endif
    22472248  /*- computes the lcm(s[i],p) -*/
    2248   Lp.lcm = pInit();
    2249 
    2250   pLcm(p,strat->S[i],Lp.lcm);
    2251   pSetm(Lp.lcm);
     2249  Lp.lcm = p_Lcm(p,strat->S[i],currRing);
    22522250
    22532251  if (strat->sugarCrit)
     
    23772375    pNorm(p);
    23782376
    2379   if ((strat->S[i]==NULL) || (p==NULL))
    2380     return;
    2381 
    23822377  if ((strat->fromQ!=NULL) && (isFromQ!=0) && (strat->fromQ[i]!=0))
    23832378    Lp.p=NULL;
     
    24662461  pLcm(p,strat->S[i],Lp.lcm);
    24672462#elif defined(HAVE_RATGRING)
    2468   //  if (rIsRatGRing(currRing))
    2469   pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift
     2463  if (rIsRatGRing(currRing))
     2464    pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift
     2465  else
     2466    pLcm(p,strat->S[i],Lp.lcm);
    24702467#endif
    24712468  pSetm(Lp.lcm);
     
    27422739  pLcm(p,strat->S[i],Lp.lcm);
    27432740#elif defined(HAVE_RATGRING)
    2744   //  if (rIsRatGRing(currRing))
    2745   pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift
     2741  if (rIsRatGRing(currRing))
     2742    pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift
     2743  else
     2744    pLcm(p,strat->S[i],Lp.lcm);
    27462745#endif
    27472746  pSetm(Lp.lcm);
     
    31563155  Lp.i_r = -1;
    31573156
    3158   Lp.lcm = pInit();
    3159   pLcm(p,strat->S[i],Lp.lcm);
    3160   pSetm(Lp.lcm);
     3157  Lp.lcm = p_Lcm(p,strat->S[i],currRing);
    31613158  /*-  compute the short s-polynomial -*/
    31623159
     
    42394236#endif
    42404237  /*- computes the lcm(s[i],p) -*/
    4241   Lp.lcm = pInit();
    4242 
    4243   pLcm(p,f,Lp.lcm);
    4244   pSetm(Lp.lcm);
     4238  Lp.lcm = p_Lcm(p,f,Lp.lcm,currRing);
    42454239  pSetCoeff(Lp.lcm, nLcm(pGetCoeff(p), pGetCoeff(f), currRing));
    42464240  assume(!strat->sugarCrit);
     
    1235012344#endif
    1235112345  /*- computes the lcm(s[i],p) -*/
    12352   Lp.lcm = pInit();
    12353 
    12354   pLcm(p,q, Lp.lcm); // q is what was strat->S[i], so a poly in LM/TR presentation
    12355   pSetm(Lp.lcm);
     12346  Lp.lcm = p_Lcm(p,q, currRing); // q is what was strat->S[i], so a poly in LM/TR presentation
    1235612347
    1235712348  /* apply the V criterion */
Note: See TracChangeset for help on using the changeset viewer.