Changeset 7d405ea in git


Ignore:
Timestamp:
Aug 16, 2018, 3:24:08 PM (5 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
f57a527ff5945269a660f068be0628fbd2af9a48
Parents:
2c1877bee39e18edce18852e793125bdfcafb3e0
Message:
optimization when generating new strong spairs can only be done if the monomial order is not mixed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r2c1877 r7d405ea  
    15271527  k_GetStrongLeadTerms(p, si, currRing, m1, m2, gcd, strat->tailRing);
    15281528
    1529   unsigned long sev = pGetShortExpVector(gcd);
    1530 
    1531   for (int j = 0; j < strat->sl; j++) {
    1532     if (j == i)
    1533       continue;
    1534 
    1535     if (n_DivBy(d, pGetCoeff(strat->S[j]), currRing->cf) &&
    1536         !(strat->sevS[j] & ~sev) &&
    1537         p_LmDivisibleBy(strat->S[j], gcd, currRing)) {
    1538       nDelete(&d);
    1539       nDelete(&s);
    1540       nDelete(&t);
    1541       return FALSE;
     1529  if (!rHasMixedOrdering(currRing)) {
     1530    unsigned long sev = pGetShortExpVector(gcd);
     1531
     1532    for (int j = 0; j < strat->sl; j++) {
     1533      if (j == i)
     1534        continue;
     1535
     1536      if (n_DivBy(d, pGetCoeff(strat->S[j]), currRing->cf) &&
     1537          !(strat->sevS[j] & ~sev) &&
     1538          p_LmDivisibleBy(strat->S[j], gcd, currRing)) {
     1539        nDelete(&d);
     1540        nDelete(&s);
     1541        nDelete(&t);
     1542        return FALSE;
     1543      }
    15421544    }
    15431545  }
     
    16011603  h.pCleardenom();
    16021604  strat->initEcart(&h);
    1603   h.sev = sev;
     1605  h.sev = pGetShortExpVector(h.p);
    16041606  h.i_r1 = -1;h.i_r2 = -1;
    16051607  if (currRing!=strat->tailRing)
Note: See TracChangeset for help on using the changeset viewer.