| 180 | |
| 181 | #ifdef EIGEN_TEST_PART_2 |
| 182 | void casting() |
| 183 | { |
| 184 | Matrix4f m = Matrix4f::Random(), m2; |
| 185 | Matrix4d n = m.cast<double>(); |
| 186 | VERIFY(m.isApprox(n.cast<float>())); |
| 187 | m2 = m.cast<float>(); // check the specialization when NewType == Type |
| 188 | VERIFY(m.isApprox(m2)); |
| 189 | } |
| 190 | #endif |
| 191 | |
| 192 | template <typename Scalar> |
no test coverage detected