36 #define set_flag(a, flag) ((a)=((a)|(flag)))
37 #define test_flag(a, flag) ((a)&(flag))
38 #define clear_flag(a, flag) ((a) &=(~(flag)))
42 #define REALLOC realloc
44 #define N_NEW(n,t) (t*)malloc((n)*sizeof(t))
45 #define NEW(t) (t*)malloc(sizeof(t))
46 #define MAX(a,b) ((a)>(b)?(a):b)
47 #define MIN(a,b) ((a)<(b)?(a):b)
48 #define ABS(a) (((a)>0)?(a):(-(a)))
63 #define POINTS(inch) 72*(inch)
69 #define MALLOC gmalloc
70 #define REALLOC grealloc
83 extern double _statistics[10];
87 extern int irand(
int n);
120 #define MACHINEACC 1.0e-16
121 #define SQRT_MACHINEACC 1.0e-8
127 #define MINDIST 1.e-15
void s1(graph_t *, node_t *)
real * vector_saxpy(int n, real *x, real *y, real beta)
int excute_system_command(char *s1, char *s2)
real point_distance(real *p1, real *p2, int dim)
void vector_take(int n, real *v, int m, int *p, real **u)
void vector_float_take(int n, float *v, int m, int *p, float **u)
real * vector_add_to(int n, real *x, real *y)
real distance(real *x, int dim, int i, int j)
real * vector_saxpy2(int n, real *x, real *y, real beta)
real * vector_subtract_to(int n, real *x, real *y)
int * random_permutation(int n)
char * strip_dir(char *s)
int validQ_int_string(char *to_convert, int *v)
real vector_product(int n, real *x, real *y)
void vector_ordering(int n, real *v, int **p, int ascending)
void vector_sort_real(int n, real *v, int ascending)
EXTERN unsigned char Verbose
real vector_median(int n, real *x)
void vector_sort_int(int n, int *v, int ascending)
real vector_percentile(int n, real *x, real y)
real * vector_subtract_from(int n, real *x, real *y)
real distance_cropped(real *x, int dim, int i, int j)
void vector_print(char *s, int n, real *x)
int excute_system_command3(char *s1, char *s2, char *s3)