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