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

Function test_block

test/block.cpp:255–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void 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}

Callers

nothing calls this directly

Calls 3

data_and_strideFunction · 0.85
blockFunction · 0.70
randomFunction · 0.50

Tested by

no test coverage detected