mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
Made the cxx11_tensor_forced_eval compile without c++11.
This commit is contained in:
parent
46bcb70969
commit
1131a984a6
@ -29,7 +29,8 @@ static void test_simple()
|
|||||||
mat3 = mat1;
|
mat3 = mat1;
|
||||||
|
|
||||||
typedef Tensor<float, 1>::DimensionPair DimPair;
|
typedef Tensor<float, 1>::DimensionPair DimPair;
|
||||||
Eigen::array<DimPair, 1> dims({{DimPair(1, 0)}});
|
Eigen::array<DimPair, 1> dims;
|
||||||
|
dims[0] = DimPair(1, 0);
|
||||||
|
|
||||||
mat3 = mat3.contract(mat2, dims).eval();
|
mat3 = mat3.contract(mat2, dims).eval();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user