MCPcopy Create free account
hub / github.com/LucaFulchir/libRaptorQ / test_array

Function test_array

external/eigen3/test/array.cpp:267–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void test_array()
268{
269 for(int i = 0; i < g_repeat; i++) {
270 CALL_SUBTEST_1( array(Array<float, 1, 1>()) );
271 CALL_SUBTEST_2( array(Array22f()) );
272 CALL_SUBTEST_3( array(Array44d()) );
273 CALL_SUBTEST_4( array(ArrayXXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
274 CALL_SUBTEST_5( array(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
275 CALL_SUBTEST_6( array(ArrayXXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
276 }
277 for(int i = 0; i < g_repeat; i++) {
278 CALL_SUBTEST_1( comparisons(Array<float, 1, 1>()) );
279 CALL_SUBTEST_2( comparisons(Array22f()) );
280 CALL_SUBTEST_3( comparisons(Array44d()) );
281 CALL_SUBTEST_5( comparisons(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
282 CALL_SUBTEST_6( comparisons(ArrayXXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
283 }
284 for(int i = 0; i < g_repeat; i++) {
285 CALL_SUBTEST_1( min_max(Array<float, 1, 1>()) );
286 CALL_SUBTEST_2( min_max(Array22f()) );
287 CALL_SUBTEST_3( min_max(Array44d()) );
288 CALL_SUBTEST_5( min_max(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
289 CALL_SUBTEST_6( min_max(ArrayXXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
290 }
291 for(int i = 0; i < g_repeat; i++) {
292 CALL_SUBTEST_1( array_real(Array<float, 1, 1>()) );
293 CALL_SUBTEST_2( array_real(Array22f()) );
294 CALL_SUBTEST_3( array_real(Array44d()) );
295 CALL_SUBTEST_5( array_real(ArrayXXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
296 }
297 for(int i = 0; i < g_repeat; i++) {
298 CALL_SUBTEST_4( array_complex(ArrayXXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
299 }
300
301 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<int>::type, int >::value));
302 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<float>::type, float >::value));
303 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<Array2i>::type, ArrayBase<Array2i> >::value));
304 typedef CwiseUnaryOp<internal::scalar_sum_op<double>, ArrayXd > Xpr;
305 VERIFY((internal::is_same< internal::global_math_functions_filtering_base<Xpr>::type,
306 ArrayBase<Xpr>
307 >::value));
308}

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