source: git/kernel/mpr_global.h @ 1c473f

spielwiese
Last change on this file since 1c473f was 6cef452, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: the debug version is a debug version, not a timing version git-svn-id: file:///usr/local/Singular/svn/trunk@8249 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.2 2005-05-20 14:35:44 Singular 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#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 mprPROTInl(msg,intval) Print("%s%d\n",msg,intval)
38#define mprPROTN(msg,nval) PrintS(msg);nPrint(nval);
39#define mprPROTNnl(msg,nval) PrintS(msg);nPrint(nval);PrintLn();
40#else
41#define mprPROT(msg)
42#define mprPROTnl(msg)
43#define mprPROTP(msg,poly)
44#define mprPROTPnl(msg,poly)
45#define mprPROTI(msg,intval)
46#define mprPROTInl(msg,intval)
47#define mprPROTN(msg,nval)
48#define mprPROTNnl(msg,nval)
49#endif
50
51#if defined(mprDEBUG_STICKY) && defined(HAVE_FACTORY)
52// call 'option(prot);' to get status informations
53#define mprSTICKYPROT(msg) if (BTEST1(OPT_PROT)) Print(msg)
54#define mprSTICKYPROT2(msg,arg) if (BTEST1(OPT_PROT)) Print(msg,arg)
55#else
56#define mprSTICKYPROT(msg)
57#define mprSTICKYPROT2(msg,arg)
58#endif
59
60// output by mprSTICKYPROT
61#define ST_BASE_EV "."
62
63#define ST_DENSE_FR ":"
64#define ST_DENSE_NR "."
65#define ST_DENSE_MEM "+"
66#define ST_DENSE_NMON "-"
67
68#define ST_SPARSE_MEM "+"
69#define ST_SPARSE_VADD "+"
70#define ST_SPARSE_VREJ "-"
71#define ST_SPARSE_MPEND "e"
72#define ST_SPARSE_MREC1 "r"
73#define ST_SPARSE_MREC2 "R"
74#define ST_SPARSE_RC "+"
75#define ST_SPARSE_RCRJ "-"
76
77#define ST__DET "|"
78
79#define ST_ROOTS_LGSTEP "|"
80#define ST_ROOTS_LGPOLISH "#"
81#define ST_ROOTS_LG "-"
82
83#define ST_VANDER_STEP "."
84
85#endif
86
87// local Variables: ***
88// folded-file: t ***
89// compile-command-1: "make installg" ***
90// compile-command-2: "make install" ***
91// End: ***
Note: See TracBrowser for help on using the repository browser.