MCPcopy Create free account
hub / github.com/PX4/eigen / test_ref

Function test_ref

test/ref.cpp:258–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void test_ref()
259{
260 for(int i = 0; i < g_repeat; i++) {
261 CALL_SUBTEST_1( ref_vector(Matrix<float, 1, 1>()) );
262 CALL_SUBTEST_1( check_const_correctness(Matrix<float, 1, 1>()) );
263 CALL_SUBTEST_2( ref_vector(Vector4d()) );
264 CALL_SUBTEST_2( check_const_correctness(Matrix4d()) );
265 CALL_SUBTEST_3( ref_vector(Vector4cf()) );
266 CALL_SUBTEST_4( ref_vector(VectorXcf(8)) );
267 CALL_SUBTEST_5( ref_vector(VectorXi(12)) );
268 CALL_SUBTEST_5( check_const_correctness(VectorXi(12)) );
269
270 CALL_SUBTEST_1( ref_matrix(Matrix<float, 1, 1>()) );
271 CALL_SUBTEST_2( ref_matrix(Matrix4d()) );
272 CALL_SUBTEST_1( ref_matrix(Matrix<float,3,5>()) );
273 CALL_SUBTEST_4( ref_matrix(MatrixXcf(internal::random<int>(1,10),internal::random<int>(1,10))) );
274 CALL_SUBTEST_4( ref_matrix(Matrix<std::complex<double>,10,15>()) );
275 CALL_SUBTEST_5( ref_matrix(MatrixXi(internal::random<int>(1,10),internal::random<int>(1,10))) );
276 CALL_SUBTEST_6( call_ref() );
277 }
278
279 CALL_SUBTEST_7( test_ref_overloads() );
280}

Callers

nothing calls this directly

Calls 5

ref_vectorFunction · 0.85
ref_matrixFunction · 0.85
test_ref_overloadsFunction · 0.85
check_const_correctnessFunction · 0.70
call_refFunction · 0.70

Tested by

no test coverage detected