Changeset 658a2a in git


Ignore:
Timestamp:
Aug 18, 2022, 3:31:53 PM (21 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
008215244cacf1b937c7cbe212f4393314abe667
Parents:
d0731c963230ccafabf460a89208f06831979612
Message:
simplify kTestDivisibleByT0_Z (only called for eucledian rings)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd2.cc

    rd0731c9 r658a2a  
    139139  }
    140140}
    141 // return -1 if T[0] does not divide the leading monomial
     141// return -1 if T[0] (w/o coeff) does not divide the leading monomial
     142// (only for euclidean rings (n_QuotRem)
    142143int kTestDivisibleByT0_Z(const kStrategy strat, const LObject* L)
    143144{
     
    160161        if (p_LmShortDivisibleBy(T0p, sevT0, p, not_sev, r))
    161162        {
    162           if(n_DivBy(pGetCoeff(p), pGetCoeff(T0p), r->cf))
    163           {
    164             return 0;
    165           }
    166163          if (n_QuotRem!=ndQuotRem) /*euclidean ring*/
    167164          {
     
    180177        if (!(sevT0 & not_sev) && p_LmDivisibleBy(T0p, p, r))
    181178        {
    182           if(n_DivBy(pGetCoeff(p), pGetCoeff(T0p), r->cf))
    183           {
    184             return 0;
    185           }
    186179          if (n_QuotRem!=ndQuotRem) /*euclidean ring*/
    187180          {
     
    209202                    p, not_sev, r))
    210203        {
    211           if(n_DivBy(orest, pGetCoeff(T0p), r->cf))
    212           {
    213             return 0;
    214           }
    215204          if (n_QuotRem!=ndQuotRem) /*euclidean ring*/
    216205          {
     
    229218        if (!(sevT0 & not_sev) && p_LmDivisibleBy(T0p, p, r))
    230219        {
    231           if(n_DivBy(pGetCoeff(p), pGetCoeff(T0p), r->cf))
    232           {
    233             return 0;
    234           }
    235220          if (n_QuotRem!=ndQuotRem) /*euclidean ring*/
    236221          {
Note: See TracChangeset for help on using the changeset viewer.