From 61409d9449b02d619ae251681a2f5d3b237d9164 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 28 Feb 2015 01:49:09 -0800 Subject: Silenced one more comilation warning --- unsupported/test/cxx11_tensor_morphing.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'unsupported/test/cxx11_tensor_morphing.cpp') diff --git a/unsupported/test/cxx11_tensor_morphing.cpp b/unsupported/test/cxx11_tensor_morphing.cpp index cf9fd4803..96364c101 100644 --- a/unsupported/test/cxx11_tensor_morphing.cpp +++ b/unsupported/test/cxx11_tensor_morphing.cpp @@ -22,11 +22,11 @@ static void test_simple_reshape() Tensor tensor3(6,7); Tensor tensor4(2,21); - Tensor::Dimensions dim1{{2,3,7}}; + Tensor::Dimensions dim1(2,3,7); tensor2 = tensor1.reshape(dim1); - Tensor::Dimensions dim2{{6,7}}; + Tensor::Dimensions dim2(6,7); tensor3 = tensor1.reshape(dim2); - Tensor::Dimensions dim3{{2,21}}; + Tensor::Dimensions dim3(2,21); tensor4 = tensor1.reshape(dim1).reshape(dim3); for (int i = 0; i < 2; ++i) { @@ -50,8 +50,8 @@ static void test_reshape_in_expr() { TensorMap> tensor1(m1.data(), 2,3,5,7,11); TensorMap> tensor2(m2.data(), 3,5,7,11,13); - Tensor::Dimensions newDims1{{2,3*5*7*11}}; - Tensor::Dimensions newDims2{{3*5*7*11,13}}; + Tensor::Dimensions newDims1(2,3*5*7*11); + Tensor::Dimensions newDims2(3*5*7*11,13); typedef Tensor::DimensionPair DimPair; array contract_along{{DimPair(1, 0)}}; Tensor tensor3(2,13); @@ -72,7 +72,7 @@ static void test_reshape_as_lvalue() tensor.setRandom(); Tensor tensor2d(6,7); - Tensor::Dimensions dim{{2,3,7}}; + Tensor::Dimensions dim(2,3,7); tensor2d.reshape(dim) = tensor; float scratch[2*3*1*7*1]; @@ -311,7 +311,7 @@ static void test_composition() Eigen::Tensor matrix(7, 11); matrix.setRandom(); - const DSizes newDims{{1, 1, 11}}; + const DSizes newDims(1, 1, 11); Eigen::Tensor tensor = matrix.slice(DSizes(2, 0), DSizes(1, 11)).reshape(newDims); -- cgit v1.2.3