mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Don't rely on c++11 extension when we don't have to.
This commit is contained in:
parent
2d74ef9682
commit
92fc6add43
@ -16,8 +16,8 @@ using Eigen::RowMajor;
|
||||
|
||||
static void test_1d()
|
||||
{
|
||||
Tensor<float, 1> vec1({6});
|
||||
Tensor<float, 1, RowMajor> vec2({6});
|
||||
Tensor<float, 1> vec1(6);
|
||||
Tensor<float, 1, RowMajor> vec2(6);
|
||||
|
||||
vec1(0) = 4.0; vec2(0) = 0.0;
|
||||
vec1(1) = 8.0; vec2(1) = 1.0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user