diff options
author | 2018-03-09 09:33:43 +0100 | |
---|---|---|
committer | 2018-03-09 09:33:43 +0100 | |
commit | d820ab9edc0b38af4cdb3d545714a0c9083e5a78 (patch) | |
tree | 39de2fac91db74c03a6f11807332416d659211e3 /test | |
parent | adb134d47e70906ed15d877d7a0fe03f3f665c02 (diff) |
Add static assertion on selfadjoint-view's UpLo parameter.
Diffstat (limited to 'test')
-rw-r--r-- | test/selfadjoint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/selfadjoint.cpp b/test/selfadjoint.cpp index 92401e506..5ac219352 100644 --- a/test/selfadjoint.cpp +++ b/test/selfadjoint.cpp @@ -7,6 +7,7 @@ // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. +#define EIGEN_NO_STATIC_ASSERT #include "main.h" // This file tests the basic selfadjointView API, @@ -45,6 +46,9 @@ template<typename MatrixType> void selfadjoint(const MatrixType& m) m4 = m2; m4 -= m1.template selfadjointView<Lower>(); VERIFY_IS_APPROX(m4, m2-m3); + + VERIFY_RAISES_ASSERT(m2.template selfadjointView<StrictlyUpper>()); + VERIFY_RAISES_ASSERT(m2.template selfadjointView<UnitLower>()); } void bug_159() |