1 | #ifndef MPR_GLOBAL_H |
---|
2 | #define MPR_GLOBAL_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* $Id$ */ |
---|
7 | |
---|
8 | /* |
---|
9 | * ABSTRACT - multipolynomial resultants - |
---|
10 | * global definitions and debugging stuff |
---|
11 | */ |
---|
12 | |
---|
13 | // to get detailed timigs, define MPR_TIMING |
---|
14 | //#define MPR_TIMING |
---|
15 | |
---|
16 | // Set to double or long double. double is recomended. |
---|
17 | // Sets the global floating point type used in mpr_numeric.cc. |
---|
18 | typedef double mprfloat; |
---|
19 | |
---|
20 | // --------------------------- debugging stuff ---------------------------- |
---|
21 | #if !defined(NDEBUG) |
---|
22 | //#define mprDEBUG_ALL |
---|
23 | #endif |
---|
24 | |
---|
25 | #if !defined(NDEBUG) || defined(mprDEBUG_ALL) |
---|
26 | #define mprDEBUG_PROT |
---|
27 | #endif |
---|
28 | |
---|
29 | #define mprDEBUG_STICKY |
---|
30 | |
---|
31 | #ifdef mprDEBUG_PROT |
---|
32 | #define mprPROT(msg) PrintS(msg) |
---|
33 | #define mprPROTnl(msg) Print("%s\n",msg) |
---|
34 | #define mprPROTP(msg,poly) PrintS(msg);pWrite0(poly) |
---|
35 | #define mprPROTPnl(msg,poly) PrintS(msg);pWrite(poly) |
---|
36 | #define mprPROTI(msg,intval) Print("%s%d",msg,intval) |
---|
37 | #define mprPROTL(msg,intval) Print("%s%ld",msg,intval) |
---|
38 | #define mprPROTInl(msg,intval) Print("%s%d\n",msg,intval) |
---|
39 | #define mprPROTN(msg,nval) PrintS(msg);nPrint(nval); |
---|
40 | #define mprPROTNnl(msg,nval) PrintS(msg);nPrint(nval);PrintLn(); |
---|
41 | #else |
---|
42 | #define mprPROT(msg) |
---|
43 | #define mprPROTnl(msg) |
---|
44 | #define mprPROTP(msg,poly) |
---|
45 | #define mprPROTPnl(msg,poly) |
---|
46 | #define mprPROTI(msg,intval) |
---|
47 | #define mprPROTL(msg,intval) |
---|
48 | #define mprPROTInl(msg,intval) |
---|
49 | #define mprPROTN(msg,nval) |
---|
50 | #define mprPROTNnl(msg,nval) |
---|
51 | #endif |
---|
52 | |
---|
53 | #if defined(mprDEBUG_STICKY) && defined(HAVE_FACTORY) |
---|
54 | // call 'option(prot);' to get status informations |
---|
55 | #define mprSTICKYPROT(msg) if (BTEST1(OPT_PROT)) Print(msg) |
---|
56 | #define mprSTICKYPROT2(msg,arg) if (BTEST1(OPT_PROT)) Print(msg,arg) |
---|
57 | #else |
---|
58 | #define mprSTICKYPROT(msg) |
---|
59 | #define mprSTICKYPROT2(msg,arg) |
---|
60 | #endif |
---|
61 | |
---|
62 | // output by mprSTICKYPROT |
---|
63 | #define ST_BASE_EV "." |
---|
64 | |
---|
65 | #define ST_DENSE_FR ":" |
---|
66 | #define ST_DENSE_NR "." |
---|
67 | #define ST_DENSE_MEM "+" |
---|
68 | #define ST_DENSE_NMON "-" |
---|
69 | |
---|
70 | #define ST_SPARSE_MEM "+" |
---|
71 | #define ST_SPARSE_VADD "+" |
---|
72 | #define ST_SPARSE_VREJ "-" |
---|
73 | #define ST_SPARSE_MPEND "e" |
---|
74 | #define ST_SPARSE_MREC1 "r" |
---|
75 | #define ST_SPARSE_MREC2 "R" |
---|
76 | #define ST_SPARSE_RC "+" |
---|
77 | #define ST_SPARSE_RCRJ "-" |
---|
78 | |
---|
79 | #define ST__DET "|" |
---|
80 | |
---|
81 | #define ST_ROOTS_LGSTEP "|" |
---|
82 | #define ST_ROOTS_LGPOLISH "#" |
---|
83 | #define ST_ROOTS_LG "-" |
---|
84 | |
---|
85 | #define ST_VANDER_STEP "." |
---|
86 | |
---|
87 | #endif |
---|
88 | |
---|
89 | // local Variables: *** |
---|
90 | // folded-file: t *** |
---|
91 | // compile-command-1: "make installg" *** |
---|
92 | // compile-command-2: "make install" *** |
---|
93 | // End: *** |
---|