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

Function test_triangular

test/triangular.cpp:224–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void test_triangular()
225{
226 int maxsize = (std::min)(EIGEN_TEST_MAX_SIZE,20);
227 for(int i = 0; i < g_repeat ; i++)
228 {
229 int r = internal::random<int>(2,maxsize); TEST_SET_BUT_UNUSED_VARIABLE(r)
230 int c = internal::random<int>(2,maxsize); TEST_SET_BUT_UNUSED_VARIABLE(c)
231
232 CALL_SUBTEST_1( triangular_square(Matrix<float, 1, 1>()) );
233 CALL_SUBTEST_2( triangular_square(Matrix<float, 2, 2>()) );
234 CALL_SUBTEST_3( triangular_square(Matrix3d()) );
235 CALL_SUBTEST_4( triangular_square(Matrix<std::complex<float>,8, 8>()) );
236 CALL_SUBTEST_5( triangular_square(MatrixXcd(r,r)) );
237 CALL_SUBTEST_6( triangular_square(Matrix<float,Dynamic,Dynamic,RowMajor>(r, r)) );
238
239 CALL_SUBTEST_7( triangular_rect(Matrix<float, 4, 5>()) );
240 CALL_SUBTEST_8( triangular_rect(Matrix<double, 6, 2>()) );
241 CALL_SUBTEST_9( triangular_rect(MatrixXcf(r, c)) );
242 CALL_SUBTEST_5( triangular_rect(MatrixXcd(r, c)) );
243 CALL_SUBTEST_6( triangular_rect(Matrix<float,Dynamic,Dynamic,RowMajor>(r, c)) );
244 }
245
246 CALL_SUBTEST_1( bug_159() );
247}

Callers

nothing calls this directly

Calls 3

triangular_squareFunction · 0.85
triangular_rectFunction · 0.85
bug_159Function · 0.70

Tested by

no test coverage detected