MCPcopy Create free account
hub / github.com/Derious/cuMPC / test_ref_fixed_size_assert

Function test_ref_fixed_size_assert

dependence/eigen-3.4.0/test/ref.cpp:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void test_ref_fixed_size_assert()
324{
325 Vector4f v4 = Vector4f::Random();
326 VectorXf vx = VectorXf::Random(10);
327 VERIFY_RAISES_STATIC_ASSERT( Ref<Vector3f> y = v4; (void)y; );
328 VERIFY_RAISES_STATIC_ASSERT( Ref<Vector3f> y = vx.head<4>(); (void)y; );
329 VERIFY_RAISES_STATIC_ASSERT( Ref<const Vector3f> y = v4; (void)y; );
330 VERIFY_RAISES_STATIC_ASSERT( Ref<const Vector3f> y = vx.head<4>(); (void)y; );
331 VERIFY_RAISES_STATIC_ASSERT( Ref<const Vector3f> y = 2*v4; (void)y; );
332}
333
334EIGEN_DECLARE_TEST(ref)
335{

Callers 1

EIGEN_DECLARE_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected