Changeset e36a2c0 in git


Ignore:
Timestamp:
Feb 25, 2005, 4:07:05 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
41e418899bda23bfaa5122244dc67751826b1774
Parents:
c94036980b50bb7b8ff25462ce8b0f87a0ebad02
Message:
*hannes: more pContent


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

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    rc94036 re36a2c0  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.5 2005-02-17 09:42:18 Singular Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.6 2005-02-25 15:07:05 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    9090      if (TEST_OPT_INTSTRATEGY)
    9191      {
    92         pCleardenom((*h).p);
     92        if (rField_is_Zp_a()) pContent(h->p);
     93        else pCleardenom(h->p);// also does a pContent
    9394      }
    9495      /*computes the ecart*/
     
    250251        return 0;
    251252      }
    252       else if (strat->syzComp!=0)
    253       {
    254         if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp))
    255         {
    256           //pContent((*h).p);
    257           pCleardenom((*h).p);// also does a pContent
     253      else
     254      {
     255        if (TEST_OPT_INTSTRATEGY)
     256        {
     257          if (rField_is_Zp_a()) pContent(h->p);
     258          else pCleardenom(h->p);// also does a pContent
     259        }
     260        if (strat->syzComp!=0)
     261        {
     262          if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp))
     263          {
    258264/*
    259 *         (*h).length=pLength0((*h).p);
    260 */
    261           enterT((*h),strat);
    262           return 0;
     265*           (*h).length=pLength0((*h).p);
     266*/
     267            enterT((*h),strat);
     268            return 0;
     269          }
    263270        }
    264271      }
     
    270277      if (j >= strat->tl)
    271278      {
    272         //pContent((*h).p);
    273         pCleardenom((*h).p);// also does a pContent
     279        if (TEST_OPT_INTSTRATEGY)
     280        {
     281          if (rField_is_Zp_a()) pContent(h->p);
     282          else pCleardenom(h->p);// also does a pContent
     283        }
    274284/*
    275285*       (*h).length=pLength0((*h).p);
     
    335345//        }
    336346//      }
    337       else if (TEST_OPT_DEBUG)
    338       {
    339         PrintS("to:");
    340         wrp((*h).p);
    341         PrintLn();
     347      else
     348      {
     349        if (TEST_OPT_DEBUG)
     350        {
     351          PrintS("to:");
     352          wrp((*h).p);
     353          PrintLn();
     354        }
     355        if (TEST_OPT_INTSTRATEGY)
     356        {
     357          pContent(h->p);
     358          //pCleardenom(h->p);// also does a pContent
     359        }
    342360      }
    343361      /*- try to reduce the s-polynomial -*/
     
    359377            }
    360378          }
    361            while (!pDivisibleBy(strat->S[i],(*h).p));
     379          while (!pDivisibleBy(strat->S[i],(*h).p));
    362380          if (TEST_OPT_DEBUG) Print(" ->L[%d]\n",at);
    363381          enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);
     
    381399        if (TEST_OPT_INTSTRATEGY)
    382400        {
    383           //pContent(h->p);
    384           pCleardenom(h->p);// also does a pContent
     401          if (rField_is_Zp_a()) pContent(h->p);
     402          else pCleardenom(h->p);// also does a pContent
    385403        }
    386404        enterT((*h),strat);
     
    495513        (*h).lcm=NULL;
    496514        return 0;
     515      }
     516      if (TEST_OPT_INTSTRATEGY)
     517      {
     518        //pContent(h->p);
     519        pCleardenom(h->p);// also does a pContent
    497520      }
    498521      /* compute the ecart */
Note: See TracChangeset for help on using the changeset viewer.