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

Function EIGEN_DECLARE_TEST

dependence/eigen-3.4.0/test/array_for_matrix.cpp:266–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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