diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-02-20 15:23:23 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-02-20 15:23:23 +0100 |
commit | 2a39659d793fcde656593bbf01948bc0bd568181 (patch) | |
tree | 0f86aa74d93cde904498af80050e2b3eae8b1164 /test | |
parent | 302377110a26d88a9e0bad8322324227eda2e1c4 (diff) |
Add fully generic Vector<Type,Size> and RowVector<Type,Size> type aliases.
Diffstat (limited to 'test')
-rw-r--r-- | test/type_alias.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/type_alias.cpp b/test/type_alias.cpp index f9b0efc5d..9a6616c72 100644 --- a/test/type_alias.cpp +++ b/test/type_alias.cpp @@ -29,7 +29,7 @@ EIGEN_DECLARE_TEST(type_alias) STATIC_CHECK((is_same<Vector2<float>, Vector2f>::value)); STATIC_CHECK((is_same<RowVectorX<int>, RowVectorXi>::value)); STATIC_CHECK((is_same<RowVector2<float>, RowVector2f>::value)); - + STATIC_CHECK((is_same<ArrayXX<float>, ArrayXXf>::value)); STATIC_CHECK((is_same<Array33<int>, Array33i>::value)); STATIC_CHECK((is_same<Array2X<float>, Array2Xf>::value)); @@ -37,6 +37,11 @@ EIGEN_DECLARE_TEST(type_alias) STATIC_CHECK((is_same<ArrayX<double>, ArrayXd>::value)); STATIC_CHECK((is_same<Array4<double>, Array4d>::value)); + STATIC_CHECK((is_same<Vector<float,3>, Vector3f>::value)); + STATIC_CHECK((is_same<Vector<int,Dynamic>, VectorXi>::value)); + STATIC_CHECK((is_same<RowVector<float,3>, RowVector3f>::value)); + STATIC_CHECK((is_same<RowVector<int,Dynamic>, RowVectorXi>::value)); + #else std::cerr << "WARNING: c++11 type aliases not tested.\n"; #endif |