#include <OpenANN/io/Logger.h>
#include <cassert>
#include <cmath>
#include <iostream>
Go to the source code of this file.
#define OPENANN_CHECK |
( |
|
x) | |
assert(x) |
#define OPENANN_CHECK_EQUALS |
( |
|
x, |
|
|
|
y |
|
) |
| |
Value:{ \
{ \
OPENANN_TRACE((x)); \
OPENANN_TRACE("!="); \
} \
}
#define OPENANN_CHECK_EQUALS_DELTA |
( |
|
x, |
|
|
|
y, |
|
|
|
delta |
|
) |
| assert(OpenANN::equals((x),(y), (delta))) |
#define OPENANN_CHECK_INF |
( |
|
value) | |
|
Value:
OPENANN_TRACE("inf"); \
}
#define OPENANN_CHECK_INF_AND_NAN |
( |
|
value) | |
|
Value:
OPENANN_CHECK_NAN(value);
#define OPENANN_CHECK_NAN |
( |
|
value) | |
|
Value:
OPENANN_TRACE("nan"); \
}
#define OPENANN_CHECK_NOT_EQUALS |
( |
|
x, |
|
|
|
y |
|
) |
| assert((x) != (y)) |
#define OPENANN_CHECK_WITHIN |
( |
|
x, |
|
|
|
min, |
|
|
|
max |
|
) |
| assert(((min) <= (x)) && ((x) <= (max))); |