MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / test_array

Function test_array

packages/eigen-eigen-323c052e1731/test/array.cpp:449–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void test_array()
450{
451 for(int i = 0; i < g_repeat; i++) {
452 CALL_SUBTEST_1( array(Array<float, 1, 1>()) );
453 CALL_SUBTEST_2( array(Array22f()) );
454 CALL_SUBTEST_3( array(Array44d()) );
455 CALL_SUBTEST_4( array(ArrayXXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
456 CALL_SUBTEST_5( array(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
457 CALL_SUBTEST_6( array(ArrayXXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
458 }
459 for(int i = 0; i < g_repeat; i++) {
460 CALL_SUBTEST_1( comparisons(Array<float, 1, 1>()) );
461 CALL_SUBTEST_2( comparisons(Array22f()) );
462 CALL_SUBTEST_3( comparisons(Array44d()) );
463 CALL_SUBTEST_5( comparisons(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
464 CALL_SUBTEST_6( comparisons(ArrayXXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
465 }
466 for(int i = 0; i < g_repeat; i++) {
467 CALL_SUBTEST_1( min_max(Array<float, 1, 1>()) );
468 CALL_SUBTEST_2( min_max(Array22f()) );
469 CALL_SUBTEST_3( min_max(Array44d()) );
470 CALL_SUBTEST_5( min_max(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
471 CALL_SUBTEST_6( min_max(ArrayXXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
472 }
473 for(int i = 0; i < g_repeat; i++) {
474 CALL_SUBTEST_1( array_real(Array<float, 1, 1>()) );
475 CALL_SUBTEST_2( array_real(Array22f()) );
476 CALL_SUBTEST_3( array_real(Array44d()) );
477 CALL_SUBTEST_5( array_real(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
478 }
479 for(int i = 0; i < g_repeat; i++) {
480 CALL_SUBTEST_4( array_complex(ArrayXXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
481 }
482
483 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<int>::type, int >::value));
484 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<float>::type, float >::value));
485 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<Array2i>::type, ArrayBase<Array2i> >::value));
486 typedef CwiseUnaryOp<internal::scalar_abs_op<double>, ArrayXd > Xpr;
487 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<Xpr>::type,
488 ArrayBase<Xpr>
489 >::value));
490}

Callers

nothing calls this directly

Calls 5

min_maxFunction · 0.85
array_realFunction · 0.85
array_complexFunction · 0.85
arrayFunction · 0.70
comparisonsFunction · 0.70

Tested by

no test coverage detected