From 35722fa0222a7f99a8179d75244177a9801ea36b Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Mon, 30 Mar 2015 14:55:54 -0700 Subject: Made the index type a template parameter of the tensor class instead of encoding it in the options. --- unsupported/test/cxx11_tensor_mixed_indices.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'unsupported/test/cxx11_tensor_mixed_indices.cpp') diff --git a/unsupported/test/cxx11_tensor_mixed_indices.cpp b/unsupported/test/cxx11_tensor_mixed_indices.cpp index 8a12f9207..72f826216 100644 --- a/unsupported/test/cxx11_tensor_mixed_indices.cpp +++ b/unsupported/test/cxx11_tensor_mixed_indices.cpp @@ -11,13 +11,11 @@ #include -using Eigen::Tensor; -using Eigen::RowMajor; static void test_simple() { - Tensor vec1({6}); - Tensor vec2({6}); + Tensor vec1({6}); + Tensor vec2({6}); vec1(0) = 4.0; vec2(0) = 0.0; vec1(1) = 8.0; vec2(1) = 1.0; @@ -27,10 +25,10 @@ static void test_simple() vec1(5) = 42.0; vec2(5) = 5.0; float data3[6]; - TensorMap> vec3(data3, 6); + TensorMap> vec3(data3, 6); vec3 = vec1.sqrt(); float data4[6]; - TensorMap> vec4(data4, 6); + TensorMap> vec4(data4, 6); vec4 = vec2.square(); VERIFY_IS_APPROX(vec3(0), sqrtf(4.0)); -- cgit v1.2.3