Changeset 98f4749 in git


Ignore:
Timestamp:
Oct 5, 2018, 12:16:14 PM (6 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a75fc358053e71da8efed299e30de63ea29f3c0f
Parents:
28ac7f47ccca7ef7dbc24705df22abae3603b39b
git-author:
Christian Eder <ederc@mathematik.uni-kl.de>2018-10-05 12:16:14+02:00
git-committer:
Christian Eder <ederc@mathematik.uni-kl.de>2018-10-05 12:37:42+02:00
Message:
uses locally defined ring r instead of currRing when searching for reducers in T
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd2.cc

    r28ac7f r98f4749  
    104104      if (p_LmShortDivisibleBy(T[j].p, sevT[j],p, not_sev, r) && p_LmEqual(T[j].p, p, r))
    105105      {
    106         mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p),
    107             &rest, currRing->cf);
     106        mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf);
    108107        if (!n_IsZero(mult, currRing)) {
    109108          /* try to get the probably best one, i.e. with smallest coeff */
    110109          if (o == -1 ||
    111               n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), currRing->cf))
     110              n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), r->cf))
    112111            o = j;
    113112        }
     
    125124      if (p_LmShortDivisibleBy(T[j].p, sevT[j],p, not_sev, r) && p_LmEqual(T[j].p, p, r))
    126125      {
    127         mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p),
    128             &rest, currRing->cf);
     126        mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf);
    129127        if (!n_IsZero(mult, currRing)) {
    130128          /* try to get the probably best one, i.e. with smallest coeff */
    131129          if (o == -1 ||
    132               n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), currRing->cf))
     130              n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), r->cf))
    133131            o = j;
    134132        }
     
    162160      if (p_LmShortDivisibleBy(T[j].p, sevT[j],p, not_sev, r))
    163161      {
    164         mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p),
    165             &rest, currRing->cf);
    166         if (!n_IsZero(mult, currRing)) {
     162        mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf);
     163        if (!n_IsZero(mult, r)) {
    167164          return j;
    168165        }
    169166      }
    170167#else
    171       if (!(sevT[j] & not_sev) &&
    172           p_LmDivisibleBy(T[j].p, p, r))
    173       {
    174         mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p),
    175             &rest, currRing->cf);
    176         if (!n_IsZero(mult, currRing)) {
     168      if (!(sevT[j] & not_sev) && p_LmDivisibleBy(T[j].p, p, r))
     169      {
     170        mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf);
     171        if (!n_IsZero(mult, r)) {
    177172          return j;
    178173        }
     
    193188            p, not_sev, r))
    194189      {
    195         mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p),
    196             &rest, currRing->cf);
    197         if (!n_IsZero(mult, currRing)) {
     190        mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf);
     191        if (!n_IsZero(mult, r)) {
    198192          return j;
    199193        }
    200194      }
    201195#else
    202       if (!(sevT[j] & not_sev) &&
    203           p_LmDivisibleBy(T[j].t_p, p, r))
    204       {
    205         mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p),
    206             &rest, currRing->cf);
    207         if (!n_IsZero(mult, currRing)) {
     196      if (!(sevT[j] & not_sev) && p_LmDivisibleBy(T[j].t_p, p, r))
     197      {
     198        mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf);
     199        if (!n_IsZero(mult, r)) {
    208200          return j;
    209201        }
Note: See TracChangeset for help on using the changeset viewer.