Cleanup SFINAE in Array/Matrix(initializer_list) ctors and minor doc editing.

This commit is contained in:
Gael Guennebaud
2019-01-22 17:08:47 +01:00
parent db152b9ee6
commit 80f81f9c4b
10 changed files with 109 additions and 97 deletions

View File

@@ -0,0 +1,5 @@
ArrayXXi a {
{1, 2, 3},
{3, 4, 5}
};
cout << a << endl;

View File

@@ -1,6 +0,0 @@
Array<int, 2, 3> a {
{1, 2, 3},
{3, 4, 5}
};
Array<int, Dynamic, 1> v {{1, 2, 3, 4, 5}};
cout << a << "\n\n" << v << endl;

View File

@@ -0,0 +1,2 @@
Array<int, Dynamic, 1> v {{1, 2, 3, 4, 5}};
cout << v << endl;

View File

@@ -0,0 +1,5 @@
MatrixXd m {
{1, 2, 3},
{4, 5, 6}
};
cout << m << endl;

View File

@@ -1,6 +0,0 @@
Matrix<int, 2, 3> m {
{1, 2, 3},
{4, 5, 6}
};
VectorXi v {{1, 2}};
cout << m << "\n\n" << v << endl;

View File

@@ -0,0 +1,2 @@
VectorXi v {{1, 2}};
cout << v << endl;