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

Function test_basicstuff

test/basicstuff.cpp:257–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void test_basicstuff()
258{
259 for(int i = 0; i < g_repeat; i++) {
260 CALL_SUBTEST_1( basicStuff(Matrix<float, 1, 1>()) );
261 CALL_SUBTEST_2( basicStuff(Matrix4d()) );
262 CALL_SUBTEST_3( basicStuff(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
263 CALL_SUBTEST_4( basicStuff(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
264 CALL_SUBTEST_5( basicStuff(MatrixXcd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
265 CALL_SUBTEST_6( basicStuff(Matrix<float, 100, 100>()) );
266 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))) );
267
268 CALL_SUBTEST_3( basicStuffComplex(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
269 CALL_SUBTEST_5( basicStuffComplex(MatrixXcd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
270 }
271
272 CALL_SUBTEST_1(fixedSizeMatrixConstruction<unsigned char>());
273 CALL_SUBTEST_1(fixedSizeMatrixConstruction<float>());
274 CALL_SUBTEST_1(fixedSizeMatrixConstruction<double>());
275 CALL_SUBTEST_1(fixedSizeMatrixConstruction<int>());
276 CALL_SUBTEST_1(fixedSizeMatrixConstruction<long int>());
277 CALL_SUBTEST_1(fixedSizeMatrixConstruction<std::ptrdiff_t>());
278
279 CALL_SUBTEST_2(casting());
280}

Callers

nothing calls this directly

Calls 3

basicStuffFunction · 0.85
basicStuffComplexFunction · 0.85
castingFunction · 0.85

Tested by

no test coverage detected