diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-10 12:06:19 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-10 12:06:19 -0800 |
commit | 4716c2c6666eb7018dac2e2ed050ead45c8933e1 (patch) | |
tree | 9624441c7c3e6c5c128c391d3a9ed0df75e89634 /unsupported | |
parent | 91fe3a30043874e51225c8f25964687320c9b601 (diff) |
Fixed compilation error
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/test/cxx11_tensor_thread_pool.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/test/cxx11_tensor_thread_pool.cpp b/unsupported/test/cxx11_tensor_thread_pool.cpp index f49523683..6fe65c7f9 100644 --- a/unsupported/test/cxx11_tensor_thread_pool.cpp +++ b/unsupported/test/cxx11_tensor_thread_pool.cpp @@ -15,7 +15,7 @@ #include <Eigen/CXX11/Tensor> using Eigen::Tensor; -using std::isnan; + static void test_multithread_elementwise() { @@ -122,7 +122,7 @@ static void test_contraction_corner_cases() m_result = m_left.transpose() * m_right; for (ptrdiff_t i = 0; i < t_result.size(); i++) { - assert(!isnan(t_result.data()[i])); + assert(!std::isnan(t_result.data()[i])); if (fabs(t_result.data()[i] - m_result.data()[i]) >= 1e-4) { std::cout << "mismatch detected at index " << i << " : " << t_result.data()[i] << " vs " << m_result.data()[i] << std::endl; assert(false); @@ -137,7 +137,7 @@ static void test_contraction_corner_cases() new(&m_left) MapXf(t_left.data(), 32, 1); m_result = m_left.transpose() * m_right; for (ptrdiff_t i = 0; i < t_result.size(); i++) { - assert(!isnan(t_result.data()[i])); + assert(!std::isnan(t_result.data()[i])); if (fabs(t_result.data()[i] - m_result.data()[i]) >= 1e-4) { std::cout << "mismatch detected: " << t_result.data()[i] << " vs " << m_result.data()[i] << std::endl; assert(false); @@ -155,7 +155,7 @@ static void test_contraction_corner_cases() new(&m_right) MapXf(t_right.data(), 32, 4); m_result = m_left.transpose() * m_right; for (ptrdiff_t i = 0; i < t_result.size(); i++) { - assert(!isnan(t_result.data()[i])); + assert(!std::isnan(t_result.data()[i])); if (fabs(t_result.data()[i] - m_result.data()[i]) >= 1e-4) { std::cout << "mismatch detected: " << t_result.data()[i] << " vs " << m_result.data()[i] << std::endl; assert(false); @@ -173,7 +173,7 @@ static void test_contraction_corner_cases() new(&m_right) MapXf(t_right.data(), 32, 4); m_result = m_left.transpose() * m_right; for (ptrdiff_t i = 0; i < t_result.size(); i++) { - assert(!isnan(t_result.data()[i])); + assert(!std::isnan(t_result.data()[i])); if (fabs(t_result.data()[i] - m_result.data()[i]) >= 1e-4) { std::cout << "mismatch detected: " << t_result.data()[i] << " vs " << m_result.data()[i] << std::endl; assert(false); |