Changeset 4bbe3b in git for kernel/gr_kstd2.cc


Ignore:
Timestamp:
Dec 8, 2003, 6:31:02 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
76b84f5bfd7c384f5c7a94ccf6a2de3f89981093
Parents:
c14061bb051b9d471f072e6f16e14485a8bd0f5f
Message:
*hannes: missing files


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

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    rc14061 r4bbe3b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.1.1.1 2003-10-06 12:15:53 Singular Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.2 2003-12-08 17:31:01 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    1919#include "cntrlc.h"
    2020#include "weight.h"
    21 #include "ipid.h"
    22 #include "ipshell.h"
    2321#include "intvec.h"
    24 #include "tok.h"
     22#include "structs.h"
    2523#include "gring.h"
    2624
     
    7775        wrp(strat->S[j]);
    7876      }
    79       (*h).p = nc_spGSpolyRed(strat->S[j],(*h).p, NULL, currRing);
     77      (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p, NULL, currRing);
    8078      //spSpolyRed(strat->T[j].p,(*h).p,strat->kNoether);
    8179
     
    152150*  and the case of a degree-ordering
    153151*/
    154 static int redHomog (LObject* h,kStrategy strat)
     152static int nc_redHomog (LObject* h,kStrategy strat)
    155153{
    156154  if (strat->tl<0)
     
    179177      }
    180178      /*- compute the s-polynomial -*/
    181       (*h).p = nc_spGSpolyRed(strat->S[j],(*h).p,strat->kNoether,currRing);
     179      (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p,strat->kNoether,currRing);
    182180      if ((*h).p == NULL)
    183181      {
     
    216214*  and the case of a degree-ordering
    217215*/
    218 static int redHomog0 (LObject* h,kStrategy strat)
     216static int nc_redHomog0 (LObject* h,kStrategy strat)
    219217{
    220218  if (strat->tl<0)
     
    244242      }
    245243      /*- compute the s-polynomial -*/
    246       (*h).p = nc_spGSpolyRed(strat->T[j].p,(*h).p,strat->kNoether,currRing);
     244      (*h).p = nc_ReduceSpoly(strat->T[j].p,(*h).p,strat->kNoether,currRing);
    247245      if ((*h).p == NULL)
    248246      {
     
    289287*  and not a degree-ordering
    290288*/
    291 static int redLazy (LObject* h,kStrategy strat)
     289static int nc_redLazy (LObject* h,kStrategy strat)
    292290{
    293291  if (strat->tl<0)
     
    319317      }
    320318      /*- compute the s-polynomial -*/
    321       (*h).p = nc_spGSpolyRed(strat->S[j],(*h).p,strat->kNoether,currRing);
     319      (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p,strat->kNoether,currRing);
    322320      if ((*h).p == NULL)
    323321      {
     
    399397* element in T with respect to the given ecart
    400398*/
    401 static int redHoney (LObject*  h,kStrategy strat)
     399static int nc_redHoney (LObject*  h,kStrategy strat)
    402400{
    403401  if (strat->tl<0)
     
    482480      {
    483481        strat->fromT=FALSE;
    484         (*h).p = nc_spGSpolyRedNew(pi,(*h).p,strat->kNoether,currRing);
     482        (*h).p = nc_ReduceSpolyNew(pi,(*h).p,strat->kNoether,currRing);
    485483      }
    486484      else
    487         (*h).p = nc_spGSpolyRed(pi,(*h).p,strat->kNoether,currRing);
     485        (*h).p = nc_ReduceSpoly(pi,(*h).p,strat->kNoether,currRing);
    488486      if (TEST_OPT_DEBUG)
    489487      {
     
    576574*  reduces with elements from T and chooses the best possible
    577575*/
    578 static int redBest (LObject*  h,kStrategy strat)
     576static int nc_redBest (LObject*  h,kStrategy strat)
    579577{
    580578  if (strat->tl<0)
     
    607605      else
    608606#endif
    609       p = nc_spShort(strat->T[j].p,(*h).p);
     607      p = nc_CreateShortSpoly(strat->T[j].p,(*h).p);
    610608      /* computes only the first monomial of the spoly  */
    611609      if (p)
     
    631629              else
    632630#endif
    633               ph = nc_spShort(strat->T[j].p,(*h).p);
     631              ph = nc_CreateShortSpoly(strat->T[j].p,(*h).p);
    634632              if (ph==NULL)
    635633              {
     
    657655        }
    658656        pLmFree(p);
    659         (*h).p = nc_spGSpolyRed(strat->T[jbest].p,(*h).p,strat->kNoether,currRing);
     657        (*h).p = nc_ReduceSpoly(strat->T[jbest].p,(*h).p,strat->kNoether,currRing);
    660658      }
    661659      else
     
    734732  strat->enterS = enterSBba;
    735733  if ((BTEST1(20)) && (!strat->honey))
    736     strat->red = redBest;
     734    strat->red = nc_redBest;
    737735  else if (strat->honey)
    738     strat->red = redHoney;
     736    strat->red = nc_redHoney;
    739737  else if (pLexOrder && !strat->homog)
    740     strat->red = redLazy;
     738    strat->red = nc_redLazy;
    741739  else if (TEST_OPT_INTSTRATEGY && strat->homog)
    742     strat->red = redHomog0;
     740    strat->red = nc_redHomog0;
    743741  else
    744     strat->red = redHomog;
     742    strat->red = nc_redHomog;
    745743  if (rIsPluralRing(currRing))
    746744  {
     
    761759  if ((TEST_OPT_WEIGHTM)&&(F!=NULL))
    762760  {
    763     //interred  machen   Aenderung
    764     pFDegOld=pFDeg;
    765     pLDegOld=pLDeg;
    766     h=ggetid("ecart");
    767     if ((h!=NULL) && (IDTYP(h)==INTVEC_CMD))
    768     {
    769       ecartWeights=iv2array(IDINTVEC(h));
    770     }
    771     else
     761     //interred  machen   Aenderung
     762     pFDegOld=pFDeg;
     763     pLDegOld=pLDeg;
     764  //   h=ggetid("ecart");
     765  //   if ((h!=NULL) && (IDTYP(h)==INTVEC_CMD))
     766  //   {
     767  //     ecartWeights=iv2array(IDINTVEC(h));
     768  //   }
     769  //   else
    772770    {
    773771      ecartWeights=(short *)omAlloc((pVariables+1)*sizeof(short));
     
    833831      {
    834832        strat->cp++;
    835         /* prod.crit itself in nc_spGSpolyCreate */
    836       }
    837       strat->P.p = nc_spGSpolyCreate(strat->P.p1,strat->P.p2,strat->kNoether,currRing);
     833        /* prod.crit itself in nc_CreateSpoly */
     834      }
     835      strat->P.p = nc_CreateSpoly(strat->P.p1,strat->P.p2,strat->kNoether,currRing);
    838836    }
    839837    if (strat->P.p != NULL)
Note: See TracChangeset for help on using the changeset viewer.