Changeset 5116b54 in git


Ignore:
Timestamp:
Nov 30, 2017, 11:15:26 AM (6 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d3b5daad4e83852adf7e56ca035de6b4bcf4a06e
Parents:
bf25dfc7fcad90a083d05ce14ff812d9495a62be
git-author:
Christian Eder <ederc@mathematik.uni-kl.de>2017-11-30 11:15:26+01:00
git-committer:
Christian Eder <ederc@mathematik.uni-kl.de>2018-08-16 09:52:17+02:00
Message:
adds a pair lcm check in bba() if we are working over rings
Location:
kernel/GBEngine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd2.cc

    rbf25df r5116b54  
    23412341        minimcnt++;
    23422342      }
     2343
     2344      // a first test for removing old pairs where
     2345      // strat->P.p divides lcm of pair
     2346      /* if (rField_is_Ring(currRing))
     2347       *   pairLcmCriterion(strat); */
    23432348
    23442349      // enter into S, L, and T
  • kernel/GBEngine/kutil.cc

    rbf25df r5116b54  
    39133913  }
    39143914}
    3915 
    39163915#ifdef HAVE_RINGS
     3916// a first test for removing old pairs where
     3917// strat->P.p divides lcm of pair
     3918void pairLcmCriterion(kStrategy strat)
     3919{
     3920        number a  = pGetCoeff(strat->P.p);
     3921        poly t    = strat->P.p;
     3922        for (int l = 0; l < strat->Ll; ++l) {
     3923                if (n_DivBy(a, pGetCoeff(strat->L[l].p), currRing->cf) &&
     3924                                /* !(strat->sevS[j] & ~sev) && */
     3925                                p_LmDivisibleBy(strat->L[l].p, t, currRing)) {
     3926                        deleteInL(strat->L, &strat->Ll, l, strat);
     3927                        printf("!!\n");
     3928                }
     3929        }
     3930}
     3931
    39173932/*2
    39183933*the pairset B of pairs of type (s[i],p) is complete now. It will be updated
  • kernel/GBEngine/kutil.h

    rbf25df r5116b54  
    574574void kFreeStrat(kStrategy strat);
    575575void enterOnePairNormal (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR);
     576void pairLcmCriterion(kStrategy strat);
    576577void chainCritNormal (poly p,int ecart,kStrategy strat);
    577578void chainCritOpt_1 (poly,int,kStrategy strat);
Note: See TracChangeset for help on using the changeset viewer.