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

Function EIGEN_DECLARE_TEST

dependence/eigen-3.4.0/test/basicstuff.cpp:334–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334EIGEN_DECLARE_TEST(basicstuff)
335{
336 for(int i = 0; i < g_repeat; i++) {
337 CALL_SUBTEST_1( basicStuff(Matrix<float, 1, 1>()) );
338 CALL_SUBTEST_2( basicStuff(Matrix4d()) );
339 CALL_SUBTEST_3( basicStuff(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
340 CALL_SUBTEST_4( basicStuff(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
341 CALL_SUBTEST_5( basicStuff(MatrixXcd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
342 CALL_SUBTEST_6( basicStuff(Matrix<float, 100, 100>()) );
343 CALL_SUBTEST_7( basicStuff(Matrix<long double,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE),internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
344 CALL_SUBTEST_8( casting_all() );
345
346 CALL_SUBTEST_3( basicStuffComplex(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
347 CALL_SUBTEST_5( basicStuffComplex(MatrixXcd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
348 }
349
350 CALL_SUBTEST_1(fixedSizeMatrixConstruction<unsigned char>());
351 CALL_SUBTEST_1(fixedSizeMatrixConstruction<float>());
352 CALL_SUBTEST_1(fixedSizeMatrixConstruction<double>());
353 CALL_SUBTEST_1(fixedSizeMatrixConstruction<int>());
354 CALL_SUBTEST_1(fixedSizeMatrixConstruction<long int>());
355 CALL_SUBTEST_1(fixedSizeMatrixConstruction<std::ptrdiff_t>());
356}

Callers

nothing calls this directly

Calls 3

basicStuffFunction · 0.85
casting_allFunction · 0.85
basicStuffComplexFunction · 0.85

Tested by

no test coverage detected