This commit is contained in:
tqchen
2015-03-03 22:33:03 -08:00
parent 841d076f20
commit 39cb9d2c5e
2 changed files with 16 additions and 10 deletions

View File

@@ -28,6 +28,11 @@ extern "C" {
void (*Check)(int exp, const char *fmt, ...) = XGBoostCheck_R;
void (*Error)(const char *fmt, ...) = error;
}
namespace wrapper {
bool CheckNAN(float v) {
return ISNAN(v);
}
}
} // namespace utils
namespace random {