17 #ifndef ATOMPROBE_HELPFUNCS_H 18 #define ATOMPROBE_HELPFUNCS_H 25 #include <gsl/gsl_blas.h> 30 #define XOR(a,b) ((!(a)) ^ (!(b))) 34 #define ARRAYSIZE(f) (sizeof (f) / sizeof(*f)) 37 #if defined(__CYGWIN__) || defined(__MINGW__) 43 void pushLocale(
const char *newLocale,
int type);
51 template<
class T1,
class T2>
52 bool operator()(
const std::pair< T1, T2 > &p1,
const std::pair<T1,T2> &p2)
const 54 return p1.first< p2.first;
61 template<
class T1,
class T2>
62 bool operator()(
const std::pair< T1, T2 > &p1,
const std::pair<T1,T2> &p2)
const 64 return p1.second< p2.second;
82 template<
class T1,
class T2>
83 bool operator()(
const std::pair< T1, T2 > &p1,
const std::pair<T1,T2> &p2)
const 85 return p1.first> p2.first;
102 #if !defined(__WIN32__) && !defined(__WIN64) 110 #define TOL_EQ(a,b) ( fabs(a-b) < 1e-4) 113 #define TOL_EQ_V(f,g,h) (fabs( (f) - (g)) < (h)) float gsl_determinant(const gsl_matrix *m)
void gsl_print_matrix(const gsl_matrix *m)
bool isNotDirectory(const char *filename)
void pushLocale(const char *newLocale, int type)
bool operator()(const std::pair< T1, T2 > &p1, const std::pair< T1, T2 > &p2) const
bool getFilesize(const char *fname, size_t &size)
void gsl_print_vector(const gsl_vector *v)
bool operator()(const std::pair< T1, T2 > &p1, const std::pair< T1, T2 > &p2) const
bool operator()(const std::pair< T1, T2 > &p1, const std::pair< T1, T2 > &p2) const