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