diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2014-10-10 15:43:21 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2014-10-10 15:43:21 -0700 |
commit | 4b36c3591f247d4be38e5a12dbed7ac0d1ad2bff (patch) | |
tree | 1037706ce0fc847230f2a054433391f86e0b57a6 /unsupported/test/cxx11_tensor_shuffling.cpp | |
parent | a991f94c0e5c51555875564ce58681a82d07cd69 (diff) |
Fixed the tensor shuffling test
Diffstat (limited to 'unsupported/test/cxx11_tensor_shuffling.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_shuffling.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unsupported/test/cxx11_tensor_shuffling.cpp b/unsupported/test/cxx11_tensor_shuffling.cpp index 5ab8b6821..39c623499 100644 --- a/unsupported/test/cxx11_tensor_shuffling.cpp +++ b/unsupported/test/cxx11_tensor_shuffling.cpp @@ -12,6 +12,7 @@ #include <Eigen/CXX11/Tensor> using Eigen::Tensor; +using Eigen::array; static void test_simple_shuffling() { @@ -80,10 +81,10 @@ static void test_expr_shuffling() Tensor<float, 4> result(5,7,3,2); - array<int, 4> src_slice_dim(Eigen::array<int, 4>(2,3,1,7)); - array<int, 4> src_slice_start(Eigen::array<int, 4>(0,0,0,0)); - array<int, 4> dst_slice_dim(Eigen::array<int, 4>(1,7,3,2)); - array<int, 4> dst_slice_start(Eigen::array<int, 4>(0,0,0,0)); + array<int, 4> src_slice_dim{{2,3,1,7}}; + array<int, 4> src_slice_start{{0,0,0,0}}; + array<int, 4> dst_slice_dim{{1,7,3,2}}; + array<int, 4> dst_slice_start{{0,0,0,0}}; for (int i = 0; i < 5; ++i) { result.slice(dst_slice_start, dst_slice_dim) = |