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

Function test_determinant

test/determinant.cpp:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void test_determinant()
55{
56 for(int i = 0; i < g_repeat; i++) {
57 int s = 0;
58 CALL_SUBTEST_1( determinant(Matrix<float, 1, 1>()) );
59 CALL_SUBTEST_2( determinant(Matrix<double, 2, 2>()) );
60 CALL_SUBTEST_3( determinant(Matrix<double, 3, 3>()) );
61 CALL_SUBTEST_4( determinant(Matrix<double, 4, 4>()) );
62 CALL_SUBTEST_5( determinant(Matrix<std::complex<double>, 10, 10>()) );
63 s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE/4);
64 CALL_SUBTEST_6( determinant(MatrixXd(s, s)) );
65 TEST_SET_BUT_UNUSED_VARIABLE(s)
66 }
67}

Callers

nothing calls this directly

Calls 1

determinantFunction · 0.85

Tested by

no test coverage detected