diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-01-22 15:03:53 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-01-22 15:03:53 +0100 |
commit | 6a44ccb58b81771cc8438af20e5bf44de3d8c932 (patch) | |
tree | a7d0ad71ff004ba8e75f0f0746bcfab79e6f0891 /unsupported/test/cxx11_tensor_broadcasting.cpp | |
parent | 06971223efda38924832d86650ee1d4af6984344 (diff) |
Backout changeset 690bc950f70c61075d396671e63480bbd64bb297
Diffstat (limited to 'unsupported/test/cxx11_tensor_broadcasting.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_broadcasting.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/test/cxx11_tensor_broadcasting.cpp b/unsupported/test/cxx11_tensor_broadcasting.cpp index 6fdefd66c..2ddf47234 100644 --- a/unsupported/test/cxx11_tensor_broadcasting.cpp +++ b/unsupported/test/cxx11_tensor_broadcasting.cpp @@ -167,13 +167,13 @@ static void test_fixed_size_broadcasting() TensorFixedSize<float, Sizes<1>, DataLayout> t2; t2 = t2.constant(20.0f); - Tensor<float, 1, DataLayout> t3 = t1 + t2.broadcast(Eigen::array<int, 1>{10}); + Tensor<float, 1, DataLayout> t3 = t1 + t2.broadcast(Eigen::array<int, 1>{{10}}); for (int i = 0; i < 10; ++i) { VERIFY_IS_APPROX(t3(i), t1(i) + t2(0)); } - TensorMap<TensorFixedSize<float, Sizes<1>, DataLayout> > t4(t2.data(), {1}); - Tensor<float, 1, DataLayout> t5 = t1 + t4.broadcast(Eigen::array<int, 1>{10}); + TensorMap<TensorFixedSize<float, Sizes<1>, DataLayout> > t4(t2.data(), {{1}}); + Tensor<float, 1, DataLayout> t5 = t1 + t4.broadcast(Eigen::array<int, 1>{{10}}); for (int i = 0; i < 10; ++i) { VERIFY_IS_APPROX(t5(i), t1(i) + t2(0)); } |