| 11 | |
| 12 | |
| 13 | template<typename MatrixType> void zeroReduction(const MatrixType& m) { |
| 14 | // Reductions that must hold for zero sized objects |
| 15 | VERIFY(m.all()); |
| 16 | VERIFY(!m.any()); |
| 17 | VERIFY(m.prod()==1); |
| 18 | VERIFY(m.sum()==0); |
| 19 | VERIFY(m.count()==0); |
| 20 | VERIFY(m.allFinite()); |
| 21 | VERIFY(!m.hasNaN()); |
| 22 | } |
| 23 | |
| 24 | |
| 25 | template<typename MatrixType> void zeroSizedMatrix() |