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

Function test_array_for_matrix

test/array_for_matrix.cpp:263–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void test_array_for_matrix()
264{
265 for(int i = 0; i < g_repeat; i++) {
266 CALL_SUBTEST_1( array_for_matrix(Matrix<float, 1, 1>()) );
267 CALL_SUBTEST_2( array_for_matrix(Matrix2f()) );
268 CALL_SUBTEST_3( array_for_matrix(Matrix4d()) );
269 CALL_SUBTEST_4( array_for_matrix(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
270 CALL_SUBTEST_5( array_for_matrix(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
271 CALL_SUBTEST_6( array_for_matrix(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
272 }
273 for(int i = 0; i < g_repeat; i++) {
274 CALL_SUBTEST_1( comparisons(Matrix<float, 1, 1>()) );
275 CALL_SUBTEST_2( comparisons(Matrix2f()) );
276 CALL_SUBTEST_3( comparisons(Matrix4d()) );
277 CALL_SUBTEST_5( comparisons(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
278 CALL_SUBTEST_6( comparisons(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
279 }
280 for(int i = 0; i < g_repeat; i++) {
281 CALL_SUBTEST_1( cwise_min_max(Matrix<float, 1, 1>()) );
282 CALL_SUBTEST_2( cwise_min_max(Matrix2f()) );
283 CALL_SUBTEST_3( cwise_min_max(Matrix4d()) );
284 CALL_SUBTEST_5( cwise_min_max(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
285 CALL_SUBTEST_6( cwise_min_max(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
286 }
287 for(int i = 0; i < g_repeat; i++) {
288 CALL_SUBTEST_1( lpNorm(Matrix<float, 1, 1>()) );
289 CALL_SUBTEST_2( lpNorm(Vector2f()) );
290 CALL_SUBTEST_7( lpNorm(Vector3d()) );
291 CALL_SUBTEST_8( lpNorm(Vector4f()) );
292 CALL_SUBTEST_5( lpNorm(VectorXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
293 CALL_SUBTEST_4( lpNorm(VectorXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
294 }
295 CALL_SUBTEST_5( lpNorm(VectorXf(0)) );
296 CALL_SUBTEST_4( lpNorm(VectorXcf(0)) );
297 for(int i = 0; i < g_repeat; i++) {
298 CALL_SUBTEST_4( resize(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
299 CALL_SUBTEST_5( resize(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
300 CALL_SUBTEST_6( resize(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
301 }
302 CALL_SUBTEST_6( regression_bug_654<0>() );
303 CALL_SUBTEST_6( regrrssion_bug_1410<0>() );
304}

Callers

nothing calls this directly

Calls 5

array_for_matrixFunction · 0.85
cwise_min_maxFunction · 0.85
lpNormFunction · 0.85
comparisonsFunction · 0.70
resizeFunction · 0.70

Tested by

no test coverage detected