diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-01-21 10:24:59 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-01-21 10:24:59 -0500 |
commit | 5be269db8820981f2281136aa626cf6ac5282981 (patch) | |
tree | 51fc8fc7f0159a454a38f89866500c30a37ffb1c /test | |
parent | cc2b7a53977eb3efc0a162792ace00d8a55b7bdb (diff) |
make eigen2 submatrices test pass
Diffstat (limited to 'test')
-rw-r--r-- | test/eigen2/submatrices.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/eigen2/submatrices.cpp b/test/eigen2/submatrices.cpp index 63c61baca..71bb65482 100644 --- a/test/eigen2/submatrices.cpp +++ b/test/eigen2/submatrices.cpp @@ -111,8 +111,10 @@ template<typename MatrixType> void submatrices(const MatrixType& m) m2.diagonal()[0] *= 3; VERIFY_IS_APPROX(m2.diagonal()[0], static_cast<Scalar>(6) * m1.diagonal()[0]); - const int BlockRows = EIGEN_ENUM_MIN(MatrixType::RowsAtCompileTime,2); - const int BlockCols = EIGEN_ENUM_MIN(MatrixType::ColsAtCompileTime,5); + enum { + BlockRows = EIGEN_SIZE_MIN_PREFER_FIXED(MatrixType::RowsAtCompileTime,2), + BlockCols = EIGEN_SIZE_MIN_PREFER_FIXED(MatrixType::ColsAtCompileTime,5) + }; if (rows>=5 && cols>=8) { // test fixed block() as lvalue |