Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TH/generic/THTensorMath.c')
-rw-r--r--lib/TH/generic/THTensorMath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/TH/generic/THTensorMath.c b/lib/TH/generic/THTensorMath.c
index 706b1d0..29894e2 100644
--- a/lib/TH/generic/THTensorMath.c
+++ b/lib/TH/generic/THTensorMath.c
@@ -2,6 +2,10 @@
#define TH_GENERIC_FILE "generic/THTensorMath.c"
#else
+#ifndef NAN
+ #define NAN (nan(NULL))
+#endif
+
#ifdef _OPENMP
#include <omp.h>
#endif