| 253 | } |
| 254 | |
| 255 | void test_block() |
| 256 | { |
| 257 | for(int i = 0; i < g_repeat; i++) { |
| 258 | CALL_SUBTEST_1( block(Matrix<float, 1, 1>()) ); |
| 259 | CALL_SUBTEST_2( block(Matrix4d()) ); |
| 260 | CALL_SUBTEST_3( block(MatrixXcf(3, 3)) ); |
| 261 | CALL_SUBTEST_4( block(MatrixXi(8, 12)) ); |
| 262 | CALL_SUBTEST_5( block(MatrixXcd(20, 20)) ); |
| 263 | CALL_SUBTEST_6( block(MatrixXf(20, 20)) ); |
| 264 | |
| 265 | CALL_SUBTEST_8( block(Matrix<float,Dynamic,4>(3, 4)) ); |
| 266 | |
| 267 | #ifndef EIGEN_DEFAULT_TO_ROW_MAJOR |
| 268 | CALL_SUBTEST_6( data_and_stride(MatrixXf(internal::random(5,50), internal::random(5,50))) ); |
| 269 | CALL_SUBTEST_7( data_and_stride(Matrix<int,Dynamic,Dynamic,RowMajor>(internal::random(5,50), internal::random(5,50))) ); |
| 270 | #endif |
| 271 | } |
| 272 | } |
nothing calls this directly
no test coverage detected