improve includes in util/math_function.hpp
authorJonathan L Long <jonlong@cs.berkeley.edu>
Tue, 6 May 2014 23:40:09 +0000 (16:40 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Wed, 7 May 2014 00:33:27 +0000 (17:33 -0700)
This commit removes the redundant <math.h>, and adds the necessary
<stdint.h> and <glog/logging.h>.

include/caffe/util/math_functions.hpp

index 887c8f2..d9c7835 100644 (file)
@@ -4,8 +4,10 @@
 #define CAFFE_UTIL_MATH_FUNCTIONS_H_
 
 #include <cublas_v2.h>
-#include <math.h>  // for signbit
-#include <cmath>  // for std::fabs
+#include <stdint.h>
+#include <cmath>  // for std::fabs and std::signbit
+
+#include "glog/logging.h"
 
 #include "caffe/util/mkl_alternate.hpp"