Changeset d7d5f6 in git
- Timestamp:
- Feb 12, 2009, 1:43:31 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 2ab41e8a61345906b383b4dc90fd21e5578fc28b
- Parents:
- 34fcf813ea36a30ddd0d8107abf9a73b247be289
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/f5gb.cc
r34fcf8 rd7d5f6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: f5gb.cc,v 1.2 6 2009-02-11 21:24:07ederc Exp $ */4 /* $Id: f5gb.cc,v 1.27 2009-02-12 12:43:31 ederc Exp $ */ 5 5 /* 6 6 * ABSTRACT: f5gb interface … … 372 372 ======================================================================== 373 373 */ 374 LList* reduction(LList* &sPolyList, LList* &completed, LList* &gPrev, RList* &rules, LTagList* &lTag, RTagList* &rTag,374 LList* reduction(LList* sPolyList, LList* completed, LList* gPrev, RList* rules, LTagList* lTag, RTagList* rTag, 375 375 ideal gbPrev) { 376 376 Print("##########################################In REDUCTION!########################################\n"); 377 377 // temporary normal form and zero polynomial for testing 378 poly tempNF = pInit();378 static poly tempNF = pInit(); 379 379 TopRed* ret = new TopRed(); 380 380 // compute only if there are any S-polynomials to be reduced … … 384 384 Print("HIER REDUCTION\n"); 385 385 while(NULL != temp->getLPoly()) { 386 tempNF = kNF(gbPrev,currQuotient,temp->getPoly()); 386 if(NULL != completed->getFirst()->getLPoly()) { 387 Print("BIS HIERHIN UND NICHT WEITER\n"); 388 Print("%p\n",completed->getFirst()); 389 pWrite(completed->getFirst()->getPoly()); 390 } 391 tempNF = kNF(gbPrev,currQuotient,temp->getPoly()); 387 392 pWrite(tempNF); 388 393 pWrite(temp->getPoly()); … … 403 408 } 404 409 else { 410 Print("HIERLALA\n"); 411 if(NULL != completed->getFirst()->getLPoly()) { 412 Print("%p\n",completed->getFirst()); 413 pWrite(completed->getFirst()->getPoly()); 414 } 415 // 416 // 417 // 418 // 419 // NOTE: until this point the element completed->getFirst()->getPoly() exists!!! 420 // 421 // 422 // 423 // 405 424 ret = topReduction(temp, completed, gPrev, rules, lTag, rTag); 406 425 // in topReduction() the investigated first element of sPolyList will be deleted after its … … 408 427 // in sPolyList => the while loop is finite 409 428 // first possible after implementation of topReduction(): temp = sPolyList->getFirst(); 410 completed = ret->getCompleted(); 429 430 completed = ret->getCompleted(); 431 432 Print("%p\n",completed->getFirst()); 433 Print("%p\n",ret->getCompleted()->getFirst()); 434 pWrite(completed->getFirst()->getPoly()); 411 435 Print("~~~HIER~~~\n"); 436 Print("%d\n",completed->getFirst()->getIndex()); 412 437 if(NULL != ret->getToDo()) { 413 438 sPolyList->insertByLabel(ret->getToDo()->getFirst()); 414 439 } 415 440 } 441 temp = sPolyList->getFirst(); 442 Print("END WHILE LOOP: "); 443 Print("%p\n",completed->getFirst()); 444 pWrite(completed->getFirst()->getPoly()); 445 416 446 } 417 447 } … … 427 457 ===================================================================================== 428 458 */ 429 TopRed* topReduction(LNode* l, LList* &completed, LList* &gPrev, RList* &rules, LTagList* &lTag, RTagList* &rTag) {459 TopRed* topReduction(LNode* l, LList* completed, LList* gPrev, RList* rules, LTagList* lTag, RTagList* rTag) { 430 460 Print("##########################################In topREDUCTION!########################################\n"); 431 461 LNode* red = new LNode(); … … 442 472 completed->insert(l->getLPoly()); 443 473 Print("%p\n",completed->getFirst()->getLPoly()); 474 Print("%d\n",completed->getFirst()->getIndex()); 444 475 pWrite(completed->getFirst()->getPoly()); 445 476 TopRed* ret = new TopRed(completed,NULL); … … 464 495 ===================================================================== 465 496 */ 466 LNode* findReductor(LNode* l,LList* &completed,LList* &gPrev, RList* &rules, LTagList* &lTag,RTagList* &rTag,497 LNode* findReductor(LNode* l,LList* completed,LList* gPrev, RList* rules, LTagList* lTag,RTagList* rTag, 467 498 LNode* gPrevRedCheck, LNode* completedRedCheck) { 468 499 number nOne = nInit(1); 469 poly u = pInit();470 poly redPoly = pInit();500 static poly u = pInit(); 501 static poly redPoly = pInit(); 471 502 poly t = pHead(l->getPoly()); 472 503 LNode* temp = new LNode(); … … 518 549 else { 519 550 temp = completed->getFirst(); 520 Print("HIER FIND \n");521 551 Print("HIER FIND2\n"); 552 Print("%p\n",temp->getLPoly()); 522 553 } 523 554 // search only for reductors with the same index, as reductions with elements of lower -
kernel/f5gb.h
r34fcf8 rd7d5f6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: f5gb.h,v 1.2 4 2009-02-11 21:24:07ederc Exp $ */4 /* $Id: f5gb.h,v 1.25 2009-02-12 12:43:31 ederc Exp $ */ 5 5 /* 6 6 * ABSTRACT: f5gb interface … … 79 79 ======================================================================== 80 80 */ 81 LList* reduction(LList* &sPolyList, LList* &completed, LList* &gPrev, RList* &rules, LTagList* &lTag, RTagList* &rTag,81 LList* reduction(LList* sPolyList, LList* completed, LList* gPrev, RList* rules, LTagList* lTag, RTagList* rTag, 82 82 ideal gbPrev); 83 83 … … 88 88 ===================================================================================== 89 89 */ 90 TopRed* topReduction(LNode* l, LList* &completed, LList* &gPrev, RList* &rules, LTagList* &lTag, RTagList* &rTag);90 TopRed* topReduction(LNode* l, LList* completed, LList* gPrev, RList* rules, LTagList* lTag, RTagList* rTag); 91 91 92 92 /* … … 95 95 ===================================================================== 96 96 */ 97 LNode* findReductor(LNode* l,LList* &completed,LList* &gPrev, RList* &rules, LTagList* &lTag,RTagList* &rTag,97 LNode* findReductor(LNode* l,LList* completed,LList* gPrev, RList* rules, LTagList* lTag,RTagList* rTag, 98 98 LNode* gPrevRedCheck, LNode* completedRedCheck); 99 99
Note: See TracChangeset
for help on using the changeset viewer.