| 165 | |
| 166 | template<typename MatrixType> |
| 167 | void testMatrixType(const MatrixType& m) |
| 168 | { |
| 169 | // Matrices with clustered eigenvalue lead to different code paths |
| 170 | // in MatrixFunction.h and are thus useful for testing. |
| 171 | |
| 172 | const Index size = m.rows(); |
| 173 | for (int i = 0; i < g_repeat; i++) { |
| 174 | testMatrix(MatrixType::Random(size, size).eval()); |
| 175 | testMatrix(randomMatrixWithRealEivals<MatrixType>(size)); |
| 176 | testMatrix(randomMatrixWithImagEivals<MatrixType>::run(size)); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | template<typename MatrixType> |
| 181 | void testMapRef(const MatrixType& A) |
no test coverage detected