Merged in rmlarsen/eigen3 (pull request PR-480)

Avoid compilation error in C++11 test when EIGEN_AVOID_STL_ARRAY is set.
This commit is contained in:
Rasmus Munk Larsen 2018-09-14 00:05:09 +00:00
commit 9b864cdb37

View File

@ -25,7 +25,8 @@ static void test_evals()
Tensor<float, 2, DataLayout> result(2,3);
result.setZero();
Eigen::array<Tensor<float, 2>::Index, 1> dims3{{0}};
Eigen::array<Tensor<float, 2>::Index, 1> dims3;
dims3[0] = 0;
typedef TensorEvaluator<decltype(input.convolve(kernel, dims3)), DefaultDevice> Evaluator;
Evaluator eval(input.convolve(kernel, dims3), DefaultDevice());