From bb483313f6a9c69e15ad5e668368eb5f80adf8f7 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 28 Feb 2015 02:32:46 -0800 Subject: Fixed another batch of compilation warnings --- unsupported/test/cxx11_tensor_contraction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unsupported/test/cxx11_tensor_contraction.cpp') diff --git a/unsupported/test/cxx11_tensor_contraction.cpp b/unsupported/test/cxx11_tensor_contraction.cpp index 2bcae90b8..f4acdc504 100644 --- a/unsupported/test/cxx11_tensor_contraction.cpp +++ b/unsupported/test/cxx11_tensor_contraction.cpp @@ -360,7 +360,7 @@ static void test_large_contraction() t_result = t_left.contract(t_right, dims); m_result = m_left * m_right; - for (size_t i = 0; i < t_result.dimensions().TotalSize(); i++) { + for (int i = 0; i < t_result.dimensions().TotalSize(); i++) { VERIFY(&t_result.data()[i] != &m_result.data()[i]); VERIFY_IS_APPROX(t_result.data()[i], m_result.data()[i]); } @@ -388,7 +388,7 @@ static void test_matrix_vector() t_result = t_left.contract(t_right, dims); m_result = m_left * m_right; - for (size_t i = 0; i < t_result.dimensions().TotalSize(); i++) { + for (int i = 0; i < t_result.dimensions().TotalSize(); i++) { VERIFY(internal::isApprox(t_result(i), m_result(i, 0), 1)); } } @@ -412,7 +412,7 @@ static void test_tensor_vector() MapXf m_right(t_right.data(), 1, 7); Eigen::Matrix m_result = m_left.transpose() * m_right.transpose(); - for (size_t i = 0; i < t_result.dimensions().TotalSize(); i++) { + for (int i = 0; i < t_result.dimensions().TotalSize(); i++) { VERIFY(internal::isApprox(t_result(i), m_result(i, 0), 1)); } } @@ -443,7 +443,7 @@ static void test_small_blocking_factors() Map> m_right(t_right.data(), 93, 140); Eigen::Matrix m_result = m_left * m_right; - for (size_t i = 0; i < t_result.dimensions().TotalSize(); i++) { + for (int i = 0; i < t_result.dimensions().TotalSize(); i++) { VERIFY_IS_APPROX(t_result.data()[i], m_result.data()[i]); } } -- cgit v1.2.3