Changeset bef194 in git for Singular/kstd1.cc


Ignore:
Timestamp:
Dec 18, 2000, 2:30:39 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
64b116830d916500b5f224c29ed87bb214f3c975
Parents:
35f23db1d98503370c2432aebc628c69b0560444
Message:
* new options: redThrough and oldStd
* increased version to 1.3.11


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

Legend:

Unmodified
Added
Removed
  • Singular/kstd1.cc

    r35f23d rbef194  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.72 2000-12-15 11:33:58 obachman Exp $ */
     4/* $Id: kstd1.cc,v 1.73 2000-12-18 13:30:35 obachman Exp $ */
    55/*
    66* ABSTRACT:
     
    4141                |Sy_bit(OPT_SUGARCRIT)     /*  5 */
    4242                |Sy_bit(OPT_REDTHROUGH)
     43                |Sy_bit(OPT_OLDSTD)
    4344                |Sy_bit(OPT_FASTHC)        /* 10 */
    4445                |Sy_bit(OPT_KEEPVARS)      /* 21 */
     
    7071                |Sy_bit(18)
    7172                |Sy_bit(19)
    72 //                |Sy_bit(20) obachman 11/00 tossed
     73//                |Sy_bit(20) obachman 11/00 tossed: 12/00 used for redOldStd
     74  |Sy_bit(OPT_OLDSTD)
    7375                |Sy_bit(21)
    7476                |Sy_bit(22)
     
    225227
    226228    // end of search: have to reduce with pi
    227     if (ei > h->ecart)
     229    if (!K_TEST_OPT_REDTHROUGH && ei > h->ecart)
    228230    {
    229231      // It is not possible to reduce h with smaller ecart;
     
    298300     *-if the number of pre-defined reductions jumps
    299301     */
    300     if ((strat->Ll >= 0)
     302    if (!K_TEST_OPT_REDTHROUGH && (strat->Ll >= 0)
    301303        && ((d >= reddeg) || (pass > strat->LazyPass)))
    302304    {
     
    401403    if (!strat->homog)
    402404    {
    403 #ifndef HAVE_OLD_STD
    404       if (strat->honey)
     405      if (!K_TEST_OPT_OLDSTD && strat->honey)
    405406      {
    406407        h->SetpFDeg();
     
    413414      }
    414415      else
    415 #endif
    416       d = h->SetDegStuffReturnLDeg(strat->LDegLast);
     416        d = h->SetDegStuffReturnLDeg(strat->LDegLast);
    417417      /*- try to reduce the s-polynomial -*/
    418418      pass++;
     
    422422       *-if the number of pre-defined reductions jumps
    423423       */
    424       if ((strat->Ll >= 0)
     424      if (!K_TEST_OPT_REDTHROUGH && (strat->Ll >= 0)
    425425          && ((d >= reddeg) || (pass > strat->LazyPass)))
    426426      {
     
    10711071  int olddeg = 0;
    10721072  int reduc = 0;
     1073  int red_result = 1;
    10731074  int hilbeledeg=1,hilbcount=0;
    10741075
     
    11741175      // might be NULL from noether !!!
    11751176      if (TEST_OPT_PROT)
    1176         message(strat->P.ecart+strat->P.GetpFDeg(),&olddeg,&reduc,strat);
     1177        message(strat->P.ecart+strat->P.GetpFDeg(),&olddeg,&reduc,strat, red_result);
    11771178      // reduce
    1178       strat->red(&strat->P,strat);
     1179      red_result = strat->red(&strat->P,strat);
    11791180    }
    11801181
     
    15521553  kStrategy strat=new skStrategy;
    15531554
    1554 #ifdef HAVE_OLD_STD
    1555   test &= ~Sy_bit(OPT_REDTHROUGH);
    1556 #endif
    1557  
    15581555  if(!TEST_OPT_RETURN_SB)
    15591556    strat->syzComp = syzComp;
Note: See TracChangeset for help on using the changeset viewer.