From 0a680a9857033dd0c3c86ca06e1357881124959f Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 9 Feb 2010 14:24:17 +0100 Subject: [PATCH] Added a non-diagonal product nesting test. --- test/nesting_ops.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 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()