⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maps_general.h

📁 在linux下面实现的单纯性算法的源代码
💻 H
字号:
/*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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -