aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nesting_ops.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-02-09 14:24:17 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-02-09 14:24:17 +0100
commit0a680a9857033dd0c3c86ca06e1357881124959f (patch)
treef3d55d9f4a83771c75e1ad2d926db89f6dda13ac /test/nesting_ops.cpp
parentdd283b3f82acc3ef0e4e4336b3d7d44588840b2f (diff)
Added a non-diagonal product nesting test.
Diffstat (limited to 'test/nesting_ops.cpp')
-rw-r--r--test/nesting_ops.cpp2
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()