mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
Added a non-diagonal product nesting test.
This commit is contained in:
parent
dd283b3f82
commit
0a680a9857
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user