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