Changeset d30a399 in git for Singular/walk.cc
- Timestamp:
- Oct 19, 2012, 9:59:20 AM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 8710ff0734063b049b29453b8d06161041fffbc7b37b3984a12e1552c7bafc9fd5a7849240ea7980
- Parents:
- f2359093b446e8c68c3bda0f0484c4dbf7bd93a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/walk.cc
rf23590 rd30a399 123 123 } 124 124 125 #if 0 /*unused*/ 125 126 /*2 126 127 *construct the set s from F u {P} … … 273 274 #endif 274 275 } 276 #endif 275 277 276 278 /*2 … … 351 353 } 352 354 355 #if 0 /*unused*/ 353 356 static void TimeString(clock_t tinput, clock_t tostd, clock_t tif,clock_t tstd, 354 357 clock_t tlf,clock_t tred, clock_t tnw, int step) … … 388 391 ((((double) xtextra)/1000000)/totm)*100); 389 392 } 390 393 #endif 394 395 #if 0 /*unused*/ 391 396 static void TimeStringFractal(clock_t tinput, clock_t tostd, clock_t tif,clock_t tstd, 392 397 clock_t textra, clock_t tlf,clock_t tred, clock_t tnw) … … 415 420 ostd,totm,mostd,mif,mstd,mextra,mlf,mred,mnw,tot,res); 416 421 } 422 #endif 417 423 418 424 static void idString(ideal L, const char* st) … … 427 433 } 428 434 435 #if 0 /*unused*/ 429 436 static void headidString(ideal L, char* st) 430 437 { … … 437 444 Print(" %s;", pString(pHead(L->m[nL-1]))); 438 445 } 439 446 #endif 447 448 #if 0 /*unused*/ 440 449 static void idElements(ideal L, char* st) 441 450 { … … 467 476 omFree(K); 468 477 } 469 478 #endif 470 479 471 480 … … 481 490 } 482 491 492 #if 0 /*unused*/ 483 493 static void MivString(intvec* iva, intvec* ivb, intvec* ivc) 484 494 { … … 498 508 Print("%d)", (*ivc)[nV]); 499 509 } 500 510 #endif 501 511 502 512 // returns gcd of integers a and b … … 534 544 } 535 545 546 #if 0 /*unused*/ 536 547 /* 23.07.03 */ 537 548 static int isVectorNeg(intvec* omega) … … 545 556 return 0; 546 557 } 558 #endif 547 559 548 560 /******************************************************************** … … 826 838 static ideal MstdCC(ideal G) 827 839 { 828 int save_test=test; 829 test|=(Sy_bit(OPT_REDTAIL)|Sy_bit(OPT_REDSB)); 840 BITSET save1,save2; 841 SI_SAVE_OPT(save1,save2); 842 si_opt_1|=(Sy_bit(OPT_REDTAIL)|Sy_bit(OPT_REDSB)); 830 843 ideal G1 = kStd(G, NULL, testHomog, NULL); 831 test=save_test;844 SI_RESTORE_OPT(save1,save2); 832 845 833 846 idSkipZeroes(G1); … … 839 852 static ideal MstdhomCC(ideal G) 840 853 { 841 int save_test=test; 842 test|=(Sy_bit(OPT_REDTAIL)|Sy_bit(OPT_REDSB)); 854 BITSET save1,save2; 855 SI_SAVE_OPT(save1,save2); 856 si_opt_1|=(Sy_bit(OPT_REDTAIL)|Sy_bit(OPT_REDSB)); 843 857 ideal G1 = kStd(G, NULL, isHomog, NULL); 844 test=save_test;858 SI_RESTORE_OPT(save1,save2); 845 859 846 860 idSkipZeroes(G1); … … 889 903 890 904 /**** 28.10.02 print the max total degree and the max coefficient of G***/ 905 #if 0 /*unused*/ 891 906 static void checkComplexity(ideal G, char* cG) 892 907 { … … 924 939 PrintLn(); 925 940 } 926 941 #endif 927 942 928 943 … … 1232 1247 } 1233 1248 1249 #if 0 /*unused*/ 1234 1250 static intvec* MatrixOrderdp(int nV) 1235 1251 { … … 1245 1261 return(ivM); 1246 1262 } 1263 #endif 1247 1264 1248 1265 intvec* MivUnit(int nV) … … 1464 1481 1465 1482 1483 #if 0 /*unused*/ 1466 1484 static void checkidealCC(ideal G, char* Ch) 1467 1485 { … … 1485 1503 PrintLn(); 1486 1504 } 1487 1505 #endif 1506 1507 #if 0 /*unused*/ 1488 1508 static void HeadidString(ideal L, char* st) 1489 1509 { … … 1496 1516 Print(" %s;\n", pString(pHead(L->m[nL]))); 1497 1517 } 1518 #endif 1498 1519 1499 1520 static inline int MivComp(intvec* iva, intvec* ivb) … … 2104 2125 } 2105 2126 2127 #if 0 /*unused*/ 2106 2128 /* check wheather one or more components of a vector are zero */ 2107 2129 static int isNolVector(intvec* hilb) … … 2114 2136 return 0; 2115 2137 } 2138 #endif 2116 2139 2117 2140 … … 2459 2482 } 2460 2483 2484 #if 0 /*unused*/ 2461 2485 /* 19.11.01 */ 2462 2486 /* find the maximal total degree of polynomials in G */ … … 2478 2502 return result; 2479 2503 } 2504 #endif 2480 2505 2481 2506 /* perturb the weight vector iva w.r.t. the ideal G. … … 2486 2511 */ 2487 2512 2513 #if 0 /*unused*/ 2488 2514 //GMP 2489 2515 static intvec* TranPertVector(ideal G, intvec* iva) … … 2612 2638 return repr_vector; 2613 2639 } 2614 2615 2616 2640 #endif 2641 2642 2643 2644 #if 0 /*unused*/ 2617 2645 static intvec* TranPertVector_lp(ideal G) 2618 2646 { … … 2702 2730 return repr_vector; 2703 2731 } 2704 2705 2732 #endif 2733 2734 2735 #if 0 /*unused*/ 2706 2736 //GMP 2707 2737 static intvec* RepresentationMatrix_Dp(ideal G, intvec* M) … … 2789 2819 return repvector; 2790 2820 } 2821 #endif 2791 2822 2792 2823 … … 2804 2835 2805 2836 // 19 Juni 2003 2837 #if 0 /* unused*/ 2806 2838 static int testnegintvec(intvec* v) 2807 2839 { … … 2814 2846 return(0); 2815 2847 } 2848 #endif 2816 2849 2817 2850
Note: See TracChangeset
for help on using the changeset viewer.