Changeset d30a399 in git for Singular/walk.cc


Ignore:
Timestamp:
Oct 19, 2012, 9:59:20 AM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
8710ff0734063b049b29453b8d06161041fffbc7b37b3984a12e1552c7bafc9fd5a7849240ea7980
Parents:
f2359093b446e8c68c3bda0f0484c4dbf7bd93a8
Message:
chg: option handling: test,verbose renamed to si_opt_1,si_opt_2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/walk.cc

    rf23590 rd30a399  
    123123}
    124124
     125#if 0 /*unused*/
    125126/*2
    126127*construct the set s from F u {P}
     
    273274#endif
    274275}
     276#endif
    275277
    276278/*2
     
    351353}
    352354
     355#if 0 /*unused*/
    353356static void TimeString(clock_t tinput, clock_t tostd, clock_t tif,clock_t tstd,
    354357                       clock_t tlf,clock_t tred, clock_t tnw, int step)
     
    388391        ((((double) xtextra)/1000000)/totm)*100);
    389392}
    390 
     393#endif
     394
     395#if 0 /*unused*/
    391396static void TimeStringFractal(clock_t tinput, clock_t tostd, clock_t tif,clock_t tstd,
    392397                       clock_t textra, clock_t tlf,clock_t tred, clock_t tnw)
     
    415420        ostd,totm,mostd,mif,mstd,mextra,mlf,mred,mnw,tot,res);
    416421}
     422#endif
    417423
    418424static void idString(ideal L, const char* st)
     
    427433}
    428434
     435#if 0 /*unused*/
    429436static void headidString(ideal L, char* st)
    430437{
     
    437444  Print(" %s;", pString(pHead(L->m[nL-1])));
    438445}
    439 
     446#endif
     447
     448#if 0 /*unused*/
    440449static void idElements(ideal L, char* st)
    441450{
     
    467476  omFree(K);
    468477}
    469 
     478#endif
    470479
    471480
     
    481490}
    482491
     492#if 0 /*unused*/
    483493static void MivString(intvec* iva, intvec* ivb, intvec* ivc)
    484494{
     
    498508  Print("%d)", (*ivc)[nV]);
    499509}
    500 
     510#endif
    501511
    502512// returns gcd of integers a and b
     
    534544}
    535545
     546#if 0 /*unused*/
    536547/* 23.07.03 */
    537548static int isVectorNeg(intvec* omega)
     
    545556  return 0;
    546557}
     558#endif
    547559
    548560/********************************************************************
     
    826838static ideal MstdCC(ideal G)
    827839{
    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));
    830843  ideal G1 = kStd(G, NULL, testHomog, NULL);
    831   test=save_test;
     844  SI_RESTORE_OPT(save1,save2);
    832845
    833846  idSkipZeroes(G1);
     
    839852static ideal MstdhomCC(ideal G)
    840853{
    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));
    843857  ideal G1 = kStd(G, NULL, isHomog, NULL);
    844   test=save_test;
     858  SI_RESTORE_OPT(save1,save2);
    845859
    846860  idSkipZeroes(G1);
     
    889903
    890904/**** 28.10.02  print the max total degree and the max coefficient of G***/
     905#if 0 /*unused*/
    891906static void checkComplexity(ideal G, char* cG)
    892907{
     
    924939  PrintLn();
    925940}
    926 
     941#endif
    927942
    928943
     
    12321247}
    12331248
     1249#if 0 /*unused*/
    12341250static intvec* MatrixOrderdp(int nV)
    12351251{
     
    12451261  return(ivM);
    12461262}
     1263#endif
    12471264
    12481265intvec* MivUnit(int nV)
     
    14641481
    14651482
     1483#if 0 /*unused*/
    14661484static void checkidealCC(ideal G, char* Ch)
    14671485{
     
    14851503  PrintLn();
    14861504}
    1487 
     1505#endif
     1506
     1507#if 0 /*unused*/
    14881508static void HeadidString(ideal L, char* st)
    14891509{
     
    14961516  Print(" %s;\n", pString(pHead(L->m[nL])));
    14971517}
     1518#endif
    14981519
    14991520static inline int MivComp(intvec* iva, intvec* ivb)
     
    21042125}
    21052126
     2127#if 0 /*unused*/
    21062128/* check wheather one or more components of a vector are zero */
    21072129static int isNolVector(intvec* hilb)
     
    21142136  return 0;
    21152137}
     2138#endif
    21162139
    21172140
     
    24592482}
    24602483
     2484#if 0 /*unused*/
    24612485/* 19.11.01 */
    24622486/* find the maximal total degree of polynomials in G */
     
    24782502  return result;
    24792503}
     2504#endif
    24802505
    24812506/* perturb the weight vector iva w.r.t. the ideal G.
     
    24862511*/
    24872512
     2513#if 0 /*unused*/
    24882514//GMP
    24892515static intvec* TranPertVector(ideal G, intvec* iva)
     
    26122638  return repr_vector;
    26132639}
    2614 
    2615 
    2616 
     2640#endif
     2641
     2642
     2643
     2644#if 0 /*unused*/
    26172645static intvec* TranPertVector_lp(ideal G)
    26182646{
     
    27022730  return repr_vector;
    27032731}
    2704 
    2705 
     2732#endif
     2733
     2734
     2735#if 0 /*unused*/
    27062736//GMP
    27072737static intvec* RepresentationMatrix_Dp(ideal G, intvec* M)
     
    27892819  return repvector;
    27902820}
     2821#endif
    27912822
    27922823
     
    28042835
    28052836// 19 Juni 2003
     2837#if 0 /* unused*/
    28062838static int testnegintvec(intvec* v)
    28072839{
     
    28142846  return(0);
    28152847}
     2848#endif
    28162849
    28172850
Note: See TracChangeset for help on using the changeset viewer.