source: git/Singular/mpr_global.h @ 3b11a7

spielwiese
Last change on this file since 3b11a7 was 3b11a7, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* undef MPR_TIMING by default git-svn-id: file:///usr/local/Singular/svn/trunk@3659 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.4 KB
Line 
1#ifndef MPR_GLOBAL_H
2#define MPR_GLOBAL_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: mpr_global.h,v 1.7 1999-09-24 14:36:56 obachman Exp $ */
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.
18typedef 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#if !defined(NDEBUG) && !defined(MPR_TIMING)
30#define MPR_TIMING
31#endif
32
33#define mprDEBUG_STICKY
34
35#ifdef mprDEBUG_PROT
36#define mprPROT(msg) Print("%s",msg)
37#define mprPROTnl(msg) Print("%s\n",msg)
38#define mprPROTP(msg,poly) Print("%s",msg);pWrite0(poly)
39#define mprPROTPnl(msg,poly) Print("%s",msg);pWrite(poly)
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();
44#else
45#define mprPROT(msg)
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
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)
59#else
60#define mprSTICKYPROT(msg)
61#define mprSTICKYPROT2(msg,arg)
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" ***
95// End: ***
Note: See TracBrowser for help on using the repository browser.