Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (42 sloc) 0.82 kb
/*
* Author: Chris Wailes <chris.wailes@gmail.com>
* Project: Parallel Linear Program Solver
* Date: 2011/10/26
* Description: Header file for utility functions.
*/
#ifndef UTIL_H
#define UTIL_H
#define ABS(a) (a < 0 ? -a : a)
#define MAX(a,b) (a < b ? b : a)
#define MIN(a,b) (a < b ? a : b)
#define EPSILON 1e-10
#define FPN_IS_ZERO(n) (-EPSILON < n && n < EPSILON)
#include <sys/types.h>
typedef enum {
FALSE = 0,
TRUE = 1
} bool;
typedef enum {
GS
} method_t;
typedef enum {
NONE = 0,
AUTO,
OMP,
PTHREADS
} pmode_t;
typedef struct {
char* filename;
method_t method;
pmode_t pmode;
bool blands;
bool profys;
uint simplex_limit;
bool init_done;
uint ncpus;
bool verbose;
bool vv;
char* mathprog_filename;
} config_t;
void get_config(int argc, char** argv);
#endif
Jump to Line
Something went wrong with that request. Please try again.