2 ////////////////////////////////////////////////////////////////////
5 // Written by Francois Fleuret //
6 // Contact <francois.fleuret@idiap.ch> for comments & bug reports //
9 ////////////////////////////////////////////////////////////////////
16 typedef float scalar_t;
19 #define ASSERT(x) if(!(x)) { \
20 std::cerr << "ASSERT FAILED IN " << __FILE__ << ":" << __LINE__ << endl; \
28 T **allocate_array(int a, int b) {
29 T *whole = new T[a * b];
30 T **array = new T *[a];
31 for(int k = 0; k < a; k++) {
39 void deallocate_array(T **array) {