diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-09 14:24:17 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-09 14:24:17 +0100 |
commit | 0a680a9857033dd0c3c86ca06e1357881124959f (patch) | |
tree | f3d55d9f4a83771c75e1ad2d926db89f6dda13ac /test/nesting_ops.cpp | |
parent | dd283b3f82acc3ef0e4e4336b3d7d44588840b2f (diff) |
Added a non-diagonal product nesting test.
Diffstat (limited to 'test/nesting_ops.cpp')
-rw-r--r-- | test/nesting_ops.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/nesting_ops.cpp b/test/nesting_ops.cpp index 2ad8f209f..565bc3644 100644 --- a/test/nesting_ops.cpp +++ b/test/nesting_ops.cpp @@ -42,6 +42,8 @@ template <typename MatrixType> void run_nesting_ops(const MatrixType& m) // not trigger any asserts or segmentation faults... more to come. VERIFY( (m.transpose() * m).diagonal().sum() == (m.transpose() * m).diagonal().sum() ); VERIFY( (m.transpose() * m).diagonal().array().abs().sum() == (m.transpose() * m).diagonal().array().abs().sum() ); + + VERIFY( (m.transpose() * m).array().abs().sum() == (m.transpose() * m).array().abs().sum() ); } void test_nesting_ops() |