Added a non-diagonal product nesting test.

This commit is contained in:
Hauke Heibel 2010-02-09 14:24:17 +01:00
parent dd283b3f82
commit 0a680a9857

View File

@ -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()