Changeset b130fb in git for kernel/gr_kstd2.cc


Ignore:
Timestamp:
Feb 17, 2005, 10:42:23 AM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
08db0a0dca2c73d19b0d83ba8110def246830498
Parents:
ecce503e3c38e63f043db34fbea817c3fc1fdc6c
Message:
*hannes: gcc-3.4


git-svn-id: file:///usr/local/Singular/svn/trunk@7733 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    recce503 rb130fb  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.4 2004-11-09 14:54:59 Singular Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.5 2005-02-17 09:42:18 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    5050  int j = 0;
    5151
    52   d = pFDeg((*h).p)+(*h).ecart;
     52  d = pFDeg((*h).p,currRing)+(*h).ecart;
    5353  reddeg = strat->LazyDegree+d;
    5454  loop
     
    9393      }
    9494      /*computes the ecart*/
    95       d = pLDeg((*h).p,&((*h).length));
    96       (*h).FDeg=pFDeg((*h).p);
     95      d = pLDeg((*h).p,&((*h).length),currRing);
     96      (*h).FDeg=pFDeg((*h).p,currRing);
    9797      (*h).ecart = d-(*h).FDeg; /*pFDeg((*h).p);*/
    9898      if ((strat->syzComp!=0) && !strat->honey)
     
    298298  int j = 0;
    299299  int pass = 0;
    300   int reddeg = pFDeg((*h).p);
     300  int reddeg = pFDeg((*h).p,currRing);
    301301
    302302  if (TEST_OPT_DEBUG)
     
    343343      /*- try to reduce the s-polynomial -*/
    344344      pass++;
    345       d = pFDeg((*h).p);
     345      d = pFDeg((*h).p,currRing);
    346346      if ((strat->Ll >= 0) && ((d > reddeg) || (pass > strat->LazyPass)))
    347347      {
     
    409409
    410410  pass = j = 0;
    411   d = reddeg = pFDeg((*h).p)+(*h).ecart;
     411  d = reddeg = pFDeg((*h).p,currRing)+(*h).ecart;
    412412  if (TEST_OPT_DEBUG)
    413413  {
     
    498498      /* compute the ecart */
    499499      if (ei <= (*h).ecart)
    500         (*h).ecart = d-pFDeg((*h).p);
     500        (*h).ecart = d-pFDeg((*h).p,currRing);
    501501      else
    502         (*h).ecart = d-pFDeg((*h).p)+ei-(*h).ecart;
     502        (*h).ecart = d-pFDeg((*h).p,currRing)+ei-(*h).ecart;
    503503//      if (strat->syzComp)
    504504//      {
     
    520520      */
    521521      pass++;
    522       d = pFDeg((*h).p)+(*h).ecart;
     522      d = pFDeg((*h).p,currRing)+(*h).ecart;
    523523      if ((strat->Ll >= 0) && ((d > reddeg) || (pass > strat->LazyPass)))
    524524      {
     
    587587
    588588  if (strat->honey)
    589     reddeg = pFDeg((*h).p)+(*h).ecart;
     589    reddeg = pFDeg((*h).p,currRing)+(*h).ecart;
    590590  else
    591     reddeg = pFDeg((*h).p);
     591    reddeg = pFDeg((*h).p,currRing);
    592592  loop
    593593  {
     
    686686      {
    687687        pass++;
    688         d = pFDeg((*h).p);
     688        d = pFDeg((*h).p,currRing);
    689689        if (strat->honey)
    690690          d += (*h).ecart;
     
    808808    if (strat->Ll== 0) strat->interpt=TRUE;
    809809    if (TEST_OPT_DEGBOUND
    810     && ((strat->honey && (strat->L[strat->Ll].ecart+pFDeg(strat->L[strat->Ll].p)>Kstd1_deg))
    811        || ((!strat->honey) && (pFDeg(strat->L[strat->Ll].p)>Kstd1_deg))))
     810    && ((strat->honey
     811    && (strat->L[strat->Ll].ecart+pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))
     812       || ((!strat->honey) && (pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))))
    812813    {
    813814      /*
     
    887888              if (strat->sl==-1) pos=0;
    888889              else pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart);
    889               strat->enterS(strat->P,pos,strat);
     890              strat->enterS(strat->P,pos,strat,-1);
    890891            }
    891892            if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat);
Note: See TracChangeset for help on using the changeset viewer.