Changeset f85f9f in git


Ignore:
Timestamp:
Nov 7, 2007, 3:28:46 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
e8d46a5bec7c92ebe23eb113e18b6a8c4b3be957
Parents:
2302217da042315eb0c77eb207bebd8a2bdff294
Message:
*hannes: fix newHEdge


git-svn-id: file:///usr/local/Singular/svn/trunk@10386 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd1.cc

    r2302217 rf85f9f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.28 2007-11-06 17:55:57 Singular Exp $ */
     4/* $Id: kstd1.cc,v 1.29 2007-11-07 14:28:46 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    11461146  strat->update = TRUE;
    11471147  /*- setting global variables ------------------- -*/
    1148   {
    1149     int i;
    1150     currRing->weight_all_1=TRUE;
    1151     for(i=currRing->N; i>0; i--)
    1152     {
    1153       if (pWeight(i)!=1) { currRing->weight_all_1=FALSE; break; }
    1154     }
    1155     if ((currRing->weight_all_1==0) && TEST_OPT_PROT) PrintS("not all weights are 1\n");
    1156   }
    11571148  initBuchMoraCrit(strat);
    11581149  initHilbCrit(F,Q,&hilb,strat);
  • kernel/kutil.cc

    r2302217 rf85f9f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.69 2007-11-06 17:55:58 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.70 2007-11-07 14:28:46 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    48954895        if (TEST_OPT_DEBUG)
    48964896          {PrintS("reduce ");wrp(h);Print(" with S[%d] (",j);wrp(strat->S[j]);}
    4897 
    48984897#endif
    48994898        h = ksOldSpolyRed(strat->S[j],h,strat->kNoetherTail());
     
    49014900        if(TEST_OPT_DEBUG)
    49024901          {PrintS(")\nto "); wrp(h); PrintLn();}
    4903 
    49044902#endif
    49054903        // pDelete(&h);
     
    49544952            change=TRUE;
    49554953            any_change=TRUE;
    4956             #ifdef KDEBUG
     4954            #ifdef KDEBUG
    49574955            if (TEST_OPT_DEBUG)
    49584956            {
     
    49604958              wrp(redSi);PrintS(" to ");p_wrp(strat->S[i], currRing, strat->tailRing);PrintLn();
    49614959            }
    4962             #endif
     4960            #endif
    49634961            if (TEST_OPT_PROT)
    49644962            {
     
    53165314  }
    53175315#endif
     5316  #ifdef KDEBUG
    53185317  if (TEST_OPT_DEBUG)
    53195318  {
     
    53215320    else              PrintS("ideal/module is not homogeneous\n");
    53225321  }
     5322  #endif
    53235323}
    53245324
     
    56695669  poly newNoether;
    56705670
     5671#if 0
    56715672  if (currRing->weight_all_1)
    56725673    scComputeHC(strat->Shdl,NULL,strat->ak,strat->kHEdge, strat->tailRing);
    56735674  else
    56745675    scComputeHCw(strat->Shdl,NULL,strat->ak,strat->kHEdge, strat->tailRing);
     5676#else   
     5677  scComputeHC(strat->Shdl,NULL,strat->ak,strat->kHEdge, strat->tailRing);
     5678#endif 
    56755679  if (strat->t_kHEdge != NULL) p_LmFree(strat->t_kHEdge, strat->tailRing);
    56765680  if (strat->tailRing != currRing)
     
    60566060  }
    60576061}
    6058 
    60596062#endif
    60606063
     
    60656068* put the pairs (s[i],sh \dot p)  into the set B, ecart=ecart(p)
    60666069*/
    6067 
    60686070void enterOnePairManyShifts (int i, poly p, int ecart, int isFromQ, kStrategy strat, int atR, int uptodeg, int lV)
    60696071{
     
    60786080  }
    60796081}
    6080 
     6082#endif
     6083
     6084#ifdef HAVE_PLURAL
    60816085/*2
    60826086* put the pair (s[i],p)  into the set B, ecart=ecart(p)
    60836087*/
    6084 
    6085 
    60866088void enterOnePairShift (int i, poly p, int ecart, int isFromQ, kStrategy strat, int atR, int uptodeg, int lV)
    60876089{
     
    63376339  }
    63386340}
    6339 
    6340 
    6341 
     6341#endif
     6342
     6343#ifdef HAVE_PLURAL
    63426344/*3
    63436345*(s[0],h),...,(s[k],h) will be put to the pairset L
     
    63996401#endif
    64006402
    6401 
    6402 
    64036403#ifdef HAVE_PLURAL
    64046404/*2
     
    64086408int redFirstShift (LObject* h,kStrategy strat)
    64096409{
    6410   assume(rIsPluralRing(currRing));
    64116410  int at,reddeg,d,i;
    64126411  int pass = 0;
     
    64476446      #endif
    64486447      (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p, currRing);
    6449       //  spSpolyRed(strat->T[j].p,(*h).p,strat->kNoether);
     6448      //spSpolyRed(strat->T[j].p,(*h).p,strat->kNoether);
    64506449
    64516450      #ifdef KDEBUG
     
    64766475          #ifdef KDEBUG
    64776476          if (TEST_OPT_DEBUG) PrintS(" > sysComp\n");
    6478           #endif
     6477          #endif
    64796478          return 0;
    64806479        }
     
    65036502          #ifdef KDEBUG
    65046503          if (TEST_OPT_DEBUG) Print(" degree jumped; ->L%d\n",at);
    6505           #endif
     6504          #endif
    65066505          (*h).p = NULL;
    65076506          return 0;
     
    65276526  }
    65286527}
    6529 #endif
    65306528
    65316529
     
    66506648  }
    66516649}
     6650#endif // HAVE_PLURAL
    66526651
    66536652#endif // KUTIL_CC
Note: See TracChangeset for help on using the changeset viewer.