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

Function EIGEN_DECLARE_TEST

dependence/eigen-3.4.0/test/triangular.cpp:266–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266EIGEN_DECLARE_TEST(triangular)
267{
268 int maxsize = (std::min)(EIGEN_TEST_MAX_SIZE,20);
269 for(int i = 0; i < g_repeat ; i++)
270 {
271 int r = internal::random<int>(2,maxsize); TEST_SET_BUT_UNUSED_VARIABLE(r)
272 int c = internal::random<int>(2,maxsize); TEST_SET_BUT_UNUSED_VARIABLE(c)
273
274 CALL_SUBTEST_1( triangular_square(Matrix<float, 1, 1>()) );
275 CALL_SUBTEST_2( triangular_square(Matrix<float, 2, 2>()) );
276 CALL_SUBTEST_3( triangular_square(Matrix3d()) );
277 CALL_SUBTEST_4( triangular_square(Matrix<std::complex<float>,8, 8>()) );
278 CALL_SUBTEST_5( triangular_square(MatrixXcd(r,r)) );
279 CALL_SUBTEST_6( triangular_square(Matrix<float,Dynamic,Dynamic,RowMajor>(r, r)) );
280
281 CALL_SUBTEST_7( triangular_rect(Matrix<float, 4, 5>()) );
282 CALL_SUBTEST_8( triangular_rect(Matrix<double, 6, 2>()) );
283 CALL_SUBTEST_9( triangular_rect(MatrixXcf(r, c)) );
284 CALL_SUBTEST_5( triangular_rect(MatrixXcd(r, c)) );
285 CALL_SUBTEST_6( triangular_rect(Matrix<float,Dynamic,Dynamic,RowMajor>(r, c)) );
286
287 CALL_SUBTEST_100( triangular_deprecated(Matrix<float, 5, 7>()) );
288 CALL_SUBTEST_100( triangular_deprecated(MatrixXd(r,c)) );
289 }
290
291 CALL_SUBTEST_1( bug_159() );
292}

Callers

nothing calls this directly

Calls 4

triangular_squareFunction · 0.85
triangular_rectFunction · 0.85
triangular_deprecatedFunction · 0.85
bug_159Function · 0.70

Tested by

no test coverage detected