MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / casting

Function casting

packages/eigen-eigen-323c052e1731/test/basicstuff.cpp:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181#ifdef EIGEN_TEST_PART_2
182void 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
192template <typename Scalar>

Callers 1

test_basicstuffFunction · 0.85

Calls 1

isApproxMethod · 0.45

Tested by

no test coverage detected