2 // Written and (C) by Francois Fleuret
3 // Contact <francois.fleuret@idiap.ch> for comments & bug reports
12 #define ASSERT(x, s) if(!(x)) { std::cerr << "ASSERT FAILED IN " << __FILE__ << ":" << __LINE__ << " [" << (s) << "]\n"; abort(); }
17 typedef float scalar_t;
19 inline scalar_t sq(scalar_t x) { return x*x; }
21 inline scalar_t prod_vect(scalar_t x1, scalar_t y1, scalar_t x2, scalar_t y2) {
22 return x1 * y2 - x2 * y1;
30 int compare_couple(const void *a, const void *b);