Changeset df638fb in git
- Timestamp:
- Jul 2, 2009, 3:47:24 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- d3acc54f1ba33a84f1a35d9bf7dc820e03c5e70a
- Parents:
- 609e27bbde0bf01bf5570326dc8bfcd73aaa4dba
- Location:
- kernel
- Files:
-
- 7 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile.in
r609e27b rdf638fb 114 114 pDebug.cc pInline2.cc pInline1.cc pInline0.cc \ 115 115 pShallowCopyDelete.cc fast_mult.cc digitech.cc \ 116 tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc ratgring.cc shiftgb.cc gfan.cc 116 tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc \ 117 f5c.cc f5cdata.cc f5clists.cc ratgring.cc shiftgb.cc gfan.cc 117 118 118 119 # normal C source files -
kernel/f5c.cc
r609e27b rdf638fb 17 17 #include "pInline1.h" 18 18 #include "f5c.h" 19 #include " f5cdata.h"19 #include "cF5cdata.h" 20 20 #include "f5clists.h" 21 21 #include "timer.h" … … 25 25 ========================================================================== 26 26 */ 27 ideal F5Cmain(ideal id, ring r) {27 ideal f5cMain(ideal id, ring r) { 28 28 return id; 29 29 } -
kernel/f5c.h
r609e27b rdf638fb 13 13 * OUTPUT: ideal g (the gröbner basis of i computed via F5C) 14 14 */ 15 ideal F5Cmain(ideal i, ring r);15 ideal f5cMain(ideal i, ring r); 16 16 17 17 #endif 18 18 #endif 19 // F5C_HEADER -
kernel/f5gb.cc
r609e27b rdf638fb 321 321 if(pLmDivisibleByNoComp(testNode->getPoly(),u1)) { 322 322 //Print("Criterion 1 NOT passed!\n"); 323 if(idx != gPrev->getLast()->getIndex()) { 324 Print("DOCH!\n"); 325 } 323 326 return true; 324 327 } … … 384 387 385 388 RNode* testNode; // = new RNode(); 386 387 if(NULL == rTag->getFirst()) { 389 testNode = rules->getFirst(); 390 /* 391 if(NULL == rTag->getFirst()) { 388 392 if(NULL != rules->getFirst()) { 389 393 testNode = rules->getFirst(); … … 393 397 } 394 398 } 395 else { 399 400 else { 396 401 397 402 if(l->getIndex() > rTag->getFirst()->getRuleIndex()) { … … 402 407 //Print("DEBUG\n"); 403 408 //Print("L INDEX: %d\n",l->getIndex()); 404 /*-------------------------------------409 *------------------------------------- 405 410 * TODO: WHEN INTERREDUCING THE GB THE 406 411 * INDEX OF THE PREVIOUS ELEMENTS 407 412 * GETS HIGHER! 408 *-----------------------------------* /413 *-----------------------------------* 409 414 //testNode = rules->getFirst(); 410 415 testNode = rTag->get(l->getIndex()); … … 415 420 } 416 421 } 422 */ 417 423 //testNode = rules->getFirst(); 418 424 // save the monom t1*label_term(l) as it is tested various times in the following … … 1269 1275 //Print("RULES FIRST: %p\n",rules->getFirst()); 1270 1276 //Print("RULES FIRST DATA: %p\n",rules->getFirst()->getRule()); 1271 RTagList* rTag = new RTagList(rules->getFirst()); 1277 //RTagList* rTag = new RTagList(rules->getFirst()); 1278 RTagList* rTag = NULL; 1272 1279 i = 1; 1273 1280 /*for(j=0; j<IDELEMS(id); j++) { … … 1328 1335 // remove this comment to get "F5" 1329 1336 // 1330 1337 /* 1331 1338 if(gPrev->getLength() > gbLength) { 1332 1339 if(i < IDELEMS(id)) { … … 1358 1365 } 1359 1366 gbLength = gPrev->getLength(); 1360 1367 */ 1361 1368 1362 1369 … … 1403 1410 // computing new groebner basis gbPrev 1404 1411 // 1405 /*1412 1406 1413 if(gPrev->getLength() > gbLength) { 1407 1414 if(i < IDELEMS(id)) { … … 1425 1432 //if(i<IDELEMS(id)) { 1426 1433 ideal tempId = kInterRed(gbPrev); 1427 Print("HERE\n");1428 1434 gbPrev = tempId; 1429 1435 delete gPrev; … … 1432 1438 gPrev->insert(pOne,1,gbPrev->m[1]); 1433 1439 rules = new RList(); 1434 rTag = new RTagList(rules->getFirst());1440 //rTag = new RTagList(rules->getFirst()); 1435 1441 for(k=2; k<IDELEMS(gbPrev); k++) { 1436 1442 gPrev->insert(pOne,k+1,gbPrev->m[k]); 1443 /* 1437 1444 for(l=0; l<k; l++) { 1438 1445 } 1439 1446 rTag->insert(rules->getFirst()); 1447 */ 1440 1448 } 1441 1449 //} 1442 1450 gbLength = gPrev->getLength(); 1443 1451 } 1444 */1452 1445 1453 1446 1454 -
kernel/f5gb.h
r609e27b rdf638fb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: f5gb.h,v 1.4 0 2009-05-29 11:34:22ederc Exp $ */4 /* $Id: f5gb.h,v 1.41 2009-07-02 13:47:24 ederc Exp $ */ 5 5 /* 6 6 * ABSTRACT: f5gb interface … … 43 43 ================================================== 44 44 */ 45 inlineLList* F5inc(int i, poly f_i, LList* gPrev, ideal gbPrev, poly ONE, LTagList* lTag, RList* rules, RTagList* rTag);45 LList* F5inc(int i, poly f_i, LList* gPrev, ideal gbPrev, poly ONE, LTagList* lTag, RList* rules, RTagList* rTag); 46 46 47 47 /* -
kernel/f5lists.cc
r609e27b rdf638fb 1019 1019 1020 1020 RNode* RTagNode::getRNode() { 1021 //Print("%p\n", this); 1022 //Print("%p\n",this->data); 1021 1023 return this->data; 1022 1024 } -
kernel/mod2.h.in
r609e27b rdf638fb 6 6 * DO NOT EDIT! 7 7 * 8 * Version: $Id: mod2.h.in,v 1.3 5 2009-06-10 07:44:37 SingularExp $8 * Version: $Id: mod2.h.in,v 1.36 2009-07-02 13:47:24 ederc Exp $ 9 9 *******************************************************************/ 10 10 #ifndef MOD2_H … … 196 196 /* procedures to compute groebner bases with the f5 implementation */ 197 197 /* still testing */ 198 #undef HAVE_F5 198 #define HAVE_F5 1 199 200 /* procedures to compute groebner bases with the f5c implementation */ 201 /* still testing */ 202 #define HAVE_F5C 1 199 203 200 204 /* letterplace gb:*/
Note: See TracChangeset
for help on using the changeset viewer.