aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_of_complex.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-05 08:35:26 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-05 08:35:26 -0800
commit57b263c5b9da8699386ce2c046c14f12e6c59533 (patch)
tree2ed6337dc7ddef5aa48534b4b7c44b5d2bce2e5e /unsupported/test/cxx11_tensor_of_complex.cpp
parent23aed8f2e4c1c22280d4f13e6e4f89a622bd096a (diff)
Avoid using initializer lists in test since not all version of msvc support them
Diffstat (limited to 'unsupported/test/cxx11_tensor_of_complex.cpp')
-rw-r--r--unsupported/test/cxx11_tensor_of_complex.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/unsupported/test/cxx11_tensor_of_complex.cpp b/unsupported/test/cxx11_tensor_of_complex.cpp
index 25e51143e..e9d1b2d3c 100644
--- a/unsupported/test/cxx11_tensor_of_complex.cpp
+++ b/unsupported/test/cxx11_tensor_of_complex.cpp
@@ -83,7 +83,9 @@ static void test_contractions()
// This contraction should be equivalent to a regular matrix multiplication
typedef Tensor<float, 1>::DimensionPair DimPair;
- Eigen::array<DimPair, 2> dims({{DimPair(2, 0), DimPair(3, 1)}});
+ Eigen::array<DimPair, 2> dims;
+ dims[0] = DimPair(2, 0);
+ dims[1] = DimPair(3, 1);
t_result = t_left.contract(t_right, dims);
m_result = m_left * m_right;
for (int i = 0; i < t_result.dimensions().TotalSize(); i++) {