Changeset 6c55ae in git
- Timestamp:
- Feb 22, 2009, 6:38:18 PM (14 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- d8be851dd8f2cf657611debe1b34b05aedcdf65d
- Parents:
- 9efc0ed3b1b416b47dc688365553407a6550f518
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstdfac.cc
r9efc0e r6c55ae 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstdfac.cc,v 1.1 5 2009-02-22 17:37:55Singular Exp $ */4 /* $Id: kstdfac.cc,v 1.16 2009-02-22 17:38:18 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: factorizing alg. of Buchberger … … 173 173 s->posInLOld=o->posInLOld; 174 174 s->enterOnePair=o->enterOnePair; 175 s->chainCrit=o->chainCrit; 175 176 s->Shdl=idCopy(o->Shdl); 176 177 s->S=s->Shdl->m; -
kernel/kutil.cc
r9efc0e r6c55ae 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.12 0 2009-02-22 10:39:42Singular Exp $ */4 /* $Id: kutil.cc,v 1.121 2009-02-22 17:37:55 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 1367 1367 1368 1368 1369 void enterOnePair (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR = -1)1369 void enterOnePairNormal (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR = -1) 1370 1370 { 1371 1371 assume(i<=strat->sl); … … 1745 1745 *using the chain-criterion in B and L and enters B to L 1746 1746 */ 1747 void chainCrit (poly p,int ecart,kStrategy strat)1747 void chainCritNormal (poly p,int ecart,kStrategy strat) 1748 1748 { 1749 1749 int i,j,l; … … 2265 2265 { 2266 2266 new_pair=TRUE; 2267 enterOnePair(j,h,ecart,isFromQ,strat, atR);2267 strat->enterOnePair(j,h,ecart,isFromQ,strat, atR); 2268 2268 //Print("j:%d, Ll:%d\n",j,strat->Ll); 2269 2269 } … … 2275 2275 for (j=0; j<=k; j++) 2276 2276 { 2277 enterOnePair(j,h,ecart,isFromQ,strat, atR);2277 strat->enterOnePair(j,h,ecart,isFromQ,strat, atR); 2278 2278 //Print("j:%d, Ll:%d\n",j,strat->Ll); 2279 2279 } … … 2288 2288 { 2289 2289 new_pair=TRUE; 2290 enterOnePair(j,h,ecart,isFromQ,strat, atR);2290 strat->enterOnePair(j,h,ecart,isFromQ,strat, atR); 2291 2291 //Print("j:%d, Ll:%d\n",j,strat->Ll); 2292 2292 } … … 2301 2301 else 2302 2302 #endif 2303 chainCrit(h,ecart,strat);2303 strat->chainCrit(h,ecart,strat); 2304 2304 } 2305 2305 } … … 5599 5599 void initBuchMoraCrit(kStrategy strat) 5600 5600 { 5601 strat->enterOnePair=enterOnePairNormal; 5602 strat->chainCrit=chainCritNormal; 5603 5601 5604 strat->sugarCrit = TEST_OPT_SUGARCRIT; 5602 5605 // obachman: Hmm.. I need BTEST1(2) for notBuckets .. … … 7247 7250 else 7248 7251 #endif 7249 chainCrit(h,ecart,strat);7252 strat->chainCrit(h,ecart,strat); 7250 7253 } 7251 7254 -
kernel/kutil.h
r9efc0e r6c55ae 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1.4 0 2009-02-22 10:39:42Singular Exp $ */6 /* $Id: kutil.h,v 1.41 2009-02-22 17:37:55 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for kStd … … 255 255 int (*posInLOld)(const LSet Ls,const int Ll, 256 256 LObject* Lo,const kStrategy strat); 257 void (*enterOnePair) (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR /*= -1*/); 258 void (*chainCrit) (poly p,int ecart,kStrategy strat); 257 259 pFDegProc pOrigFDeg; 258 260 pLDegProc pOrigLDeg; … … 449 451 void completeReduce (kStrategy strat, BOOLEAN withT=FALSE); 450 452 void kFreeStrat(kStrategy strat); 453 void enterOnePairNormal (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR); 454 void chainCritNormal (poly p,int ecart,kStrategy strat); 451 455 BOOLEAN homogTest(polyset F, int Fmax); 452 456 BOOLEAN newHEdge(polyset S, kStrategy strat);
Note: See TracChangeset
for help on using the changeset viewer.