Changeset 6ad5ce in git
- Timestamp:
- Apr 4, 2008, 12:30:09 PM (15 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 9b87a3e8e48687ab61432c83aa6566b20acb73f9
- Parents:
- d9665a0359ac0f90f1cdb71b7a7ad914f4fc3ec1
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kbuckets.cc
rd9665a0 r6ad5ce 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kbuckets.cc,v 1.3 4 2008-01-30 09:01:36 wienandExp $ */4 /* $Id: kbuckets.cc,v 1.35 2008-04-04 10:30:09 Singular Exp $ */ 5 5 6 6 #include "mod2.h" … … 429 429 #endif 430 430 assume(pLength(p) == (int) pl); 431 //if (TEST_OPT_PROT) { Print("C(%d)",pl); } 431 432 kbTest(bucket); 432 433 return i; … … 441 442 MULTIPLY_BUCKET(bucket,i); 442 443 //bucket->coef[i]=NULL; 443 #endif444 #endif 444 445 *p = bucket->buckets[i]; 445 446 *length = bucket->buckets_length[i]; -
kernel/kstd2.cc
rd9665a0 r6ad5ce 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd2.cc,v 1.6 5 2008-03-13 19:25:48 levandovExp $ */4 /* $Id: kstd2.cc,v 1.66 2008-04-04 10:30:09 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: alg. of Buchberger … … 1329 1329 strat->initEcart = initEcartBBA; 1330 1330 strat->enterS = enterSBba; 1331 #ifndef NO_BUCKETS 1332 strat->use_buckets = (!TEST_OPT_NOT_BUCKETS) && (!rIsPluralRing(currRing)); 1333 #endif 1331 1334 /*- set S -*/ 1332 1335 strat->sl = -1; … … 1387 1390 /*- set S -*/ 1388 1391 strat->sl = -1; 1392 #ifndef NO_BUCKETS 1393 strat->use_buckets = (!TEST_OPT_NOT_BUCKETS) && (!rIsPluralRing(currRing)); 1394 #endif 1389 1395 /*- init local data struct.---------------------------------------- -*/ 1390 1396 /*Shdl=*/initS(F,Q,strat); -
kernel/kutil.cc
rd9665a0 r6ad5ce 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.8 8 2008-03-13 19:25:48 levandovExp $ */4 /* $Id: kutil.cc,v 1.89 2008-04-04 10:30:09 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 319 319 { 320 320 p_Delete(&pNext(p), r); 321 322 321 if (!inNF) 322 { 323 323 number eins=nInit(1); 324 324 if (L->p != NULL) pSetCoeff(L->p,eins); 325 325 else if (L->t_p != NULL) nDelete(&pGetCoeff(L->t_p)); 326 326 if (L->t_p != NULL) pSetCoeff0(L->t_p,eins); 327 327 } 328 328 L->ecart = 0; 329 329 L->length = 1; … … 4178 4178 poly redtailBba (LObject* L, int pos, kStrategy strat, BOOLEAN withT, BOOLEAN normalize) 4179 4179 { 4180 #define REDTAIL_CANONICALIZE 100 4180 4181 strat->redTailChange=FALSE; 4181 4182 if (strat->noTailReduction) return L->GetLmCurrRing(); … … 4198 4199 Ln.PrepareRed(strat->use_buckets); 4199 4200 4201 int cnt=REDTAIL_CANONICALIZE; 4200 4202 while(!Ln.IsNull()) 4201 4203 { … … 4215 4217 if (With == NULL) break; 4216 4218 } 4219 cnt--; 4220 if (cnt==0) 4221 { 4222 cnt=REDTAIL_CANONICALIZE; 4223 poly tmp=Ln.CanonicalizeP(); 4224 if (normalize) 4225 { 4226 Ln.Normalize(); 4227 //pNormalize(tmp); 4228 //if (TEST_OPT_PROT) { PrintS("n"); mflush(); } 4229 } 4230 } 4217 4231 if (normalize && (!TEST_OPT_INTSTRATEGY) && (!nIsOne(pGetCoeff(With->p)))) 4218 4232 { 4219 4233 With->pNorm(); 4220 //if (TEST_OPT_PROT) { PrintS("n"); mflush(); }4221 4234 } 4222 4235 strat->redTailChange=TRUE; … … 4239 4252 pNext(h) = Ln.LmExtractAndIter(); 4240 4253 pIter(h); 4254 pNormalize(h); 4241 4255 L->pLength++; 4242 4256 } … … 4251 4265 L->length = 0; 4252 4266 } 4253 L->Normalize(); // HANNES: should have a test 4267 4268 //if (TEST_OPT_PROT) { PrintS("N"); mflush(); } 4269 //L->Normalize(); // HANNES: should have a test 4254 4270 kTest_L(L); 4255 4271 return L->GetLmCurrRing(); … … 4902 4918 change=TRUE; 4903 4919 any_change=TRUE; 4904 4920 #ifdef KDEBUG 4905 4921 if (TEST_OPT_DEBUG) 4906 4922 { … … 4908 4924 wrp(redSi);PrintS(" to ");p_wrp(strat->S[i], currRing, strat->tailRing);PrintLn(); 4909 4925 } 4910 4926 #endif 4911 4927 if (TEST_OPT_PROT) 4912 4928 {
Note: See TracChangeset
for help on using the changeset viewer.