#include "Header.h" //function used by qsort for to compare two vectors of type Vec int vecCompare(const void * a, const void * b) { return ( (*((float *) b)) - (*((float *) a)) ); } //gsl function used by qsort to compare two vectors of type gsl_vector int gslVecCompare(const void * a, const void * b) { return ( (*((double *) b)) - (*((double *) a)) ); } //returns the greater value of the two double max(double a, double b) { return ( ((a) > (b)) ? (a) : (b) ); } //returns the smaller value of the two double min(double a, double b) { return ( ((a) < (b)) ? (a) : (b) ); }