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

Function test_stdvector_overload

test/stdvector_overload.cpp:134–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void test_stdvector_overload()
135{
136 // some non vectorizable fixed sizes
137 CALL_SUBTEST_1(check_stdvector_matrix(Vector2f()));
138 CALL_SUBTEST_1(check_stdvector_matrix(Matrix3f()));
139 CALL_SUBTEST_2(check_stdvector_matrix(Matrix3d()));
140
141 // some vectorizable fixed sizes
142 CALL_SUBTEST_1(check_stdvector_matrix(Matrix2f()));
143 CALL_SUBTEST_1(check_stdvector_matrix(Vector4f()));
144 CALL_SUBTEST_1(check_stdvector_matrix(Matrix4f()));
145 CALL_SUBTEST_2(check_stdvector_matrix(Matrix4d()));
146
147 // some dynamic sizes
148 CALL_SUBTEST_3(check_stdvector_matrix(MatrixXd(1,1)));
149 CALL_SUBTEST_3(check_stdvector_matrix(VectorXd(20)));
150 CALL_SUBTEST_3(check_stdvector_matrix(RowVectorXf(20)));
151 CALL_SUBTEST_3(check_stdvector_matrix(MatrixXcf(10,10)));
152
153 // some Transform
154 CALL_SUBTEST_4(check_stdvector_transform(Affine2f())); // does not need the specialization (2+1)^2 = 9
155 CALL_SUBTEST_4(check_stdvector_transform(Affine3f()));
156 CALL_SUBTEST_4(check_stdvector_transform(Affine3d()));
157
158 // some Quaternion
159 CALL_SUBTEST_5(check_stdvector_quaternion(Quaternionf()));
160 CALL_SUBTEST_5(check_stdvector_quaternion(Quaterniond()));
161}

Callers

nothing calls this directly

Calls 3

check_stdvector_matrixFunction · 0.70

Tested by

no test coverage detected