- Timestamp:
- Oct 27, 2015, 4:24:14 PM (9 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- e736f717a4d2e550245f1677b099556f119a6d3c
- Parents:
- 5a4733360224d373ed5606d28971ab428f7d3ffad494396ae5d0b97624b211d3996e04e87606f219
- Location:
- kernel/GBEngine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd1.cc
r5a47333 rdd60cee 509 509 if (at <= strat->Ll && pLmCmp(h->p, strat->L[strat->Ll].p) != 0 && !nEqual(h->p->coef, strat->L[strat->Ll].p->coef)) 510 510 { 511 #if 1512 511 /*- h will not become the next element to reduce -*/ 513 512 enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at); … … 518 517 strat->fromT = FALSE; 519 518 return -1; 520 521 #else522 523 LObject* h2;524 pWrite(h->p);525 h2->tailRing = h->tailRing;526 h2->p = pCopy(h->p);527 pWrite(h2->p);528 strat->initEcart(h2);529 h2->sev = h->sev;530 doRed(h,&(strat->T[ii]),FALSE,strat,FALSE);531 #if ADIDEBUG_NF532 printf("\nPartial reduced (ecart = %i) h: ",h->ecart);pWrite(h->p);533 #endif534 if(h->IsNull())535 {536 if (h->lcm!=NULL)537 {538 pLmDelete(h->lcm);539 }540 h->Clear();541 h2->Clear();542 return 0;543 }544 strat->initEcart(h);545 h->sev = pGetShortExpVector(h->p);546 at = strat->posInL(strat->L,strat->Ll,h,strat);547 enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);548 #if ADIDEBUG_NF549 printf("\nThis was reduced and went to L: ");pWrite(h->p);550 #endif551 at = strat->posInL(strat->L,strat->Ll,h2,strat);552 enterL(&strat->L,&strat->Ll,&strat->Lmax,*h2,at);553 #if ADIDEBUG_NF554 printf("\nThis was reduced and went to L: ");pWrite(h2->p);555 #endif556 //This means the pair won't go into T557 return 3;558 #endif559 519 } 560 520 } 561 } 562 // now we finally can reduce 563 doRed(h,&(strat->T[ii]),strat->fromT,strat,FALSE); 521 doRed(h,&(strat->T[ii]),strat->fromT,strat,TRUE); 522 } 523 else 524 { 525 // now we finally can reduce 526 doRed(h,&(strat->T[ii]),strat->fromT,strat,FALSE); 527 } 564 528 strat->fromT=FALSE; 565 529 // are we done ??? -
kernel/GBEngine/kutil.cc
r5a47333 rdd60cee 1511 1511 { 1512 1512 if(h.IsNull()) return FALSE; 1513 int red_result; 1514 if(strat->L != NULL) 1515 red_result = strat->red(&h,strat); 1513 //int red_result; 1514 //reduzieren ist teur!!! 1515 //if(strat->L != NULL) 1516 //red_result = strat->red(&h,strat); 1516 1517 if(!h.IsNull()) 1518 { 1517 1519 enterT(h, strat,-1); 1520 //int pos = posInS(strat,strat->sl,h.p,h.ecart); 1521 //strat->enterS(h,pos,strat,-1); 1522 } 1518 1523 } 1519 1524 //#if 1
Note: See TracChangeset
for help on using the changeset viewer.