libocas_common.h

Go to the documentation of this file.
00001 #include "lib/Mathematics.h"
00002 #include "lib/io.h"
00003 
00004 #define OCAS_PLUS_INF CMath::INFTY
00005 #define OCAS_CALLOC(x...) calloc(x)
00006 #define OCAS_FREE(x...) free(x)
00007 
00008 #define INDEX2(ROW,COL,NUM_ROWS) ((COL)*(NUM_ROWS)+(ROW))
00009 #define MIN(A,B) ((A) > (B) ? (B) : (A))
00010 #define MAX(A,B) ((A) < (B) ? (B) : (A))
00011 #define ABS(A) ((A) < 0 ? -(A) : (A))

SHOGUN Machine Learning Toolbox - Documentation