maps_general.h
来自「在linux下面实现的单纯性算法的源代码」· C头文件 代码 · 共 56 行
H
56 行
/*6/1/99*/#ifndef _MAPS_GENERAL_#define _MAPS_GENERAL_#include "vec.h" /*Chris Siefert's modified version of R. Pozo's TNT libraries*/#include "cmat.h" /*Chris Siefert's modified version of R. Pozo's TNT libraries*/#include "rngs.h" /*Steve Park's Random Number Generation Libraries*/#define round(x) ((long) (x + 0.5))#define sqr(x) ((x)*(x))#define TOLERANCE 10e-12 //for various tests#define ERROR -1/*status flag stuff. */#define NOTINIT 0#define READY 1#define MAPS_RUNNING 2#define MAPS_DONE 3#ifndef DEBUG#define DEBUG 1#endif/* debuglevels set at compile-time DEBUG = 0 - dead silent DEBUG = 1 - soft - errors only DEBUG = 2 - verbose - function calls and returns, mostly DEBUG = 3 - quite loud DEBUG = 4 - as loud as a rock concert.*/#ifdef NO_BOOLStypedef int bool;#define false 0#define true 1#endiftypedef Vector<double> mp_vector;typedef Vector<long> ml_vector;typedef Matrix<double> pt_collect;struct Bounds { /*public:*/ mp_vector lower; mp_vector upper;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?