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

Function test_zerosized

test/nomalloc.cpp:159–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void test_zerosized() {
160 // default constructors:
161 Eigen::MatrixXd A;
162 Eigen::VectorXd v;
163 // explicit zero-sized:
164 Eigen::ArrayXXd A0(0,0);
165 Eigen::ArrayXd v0(0);
166
167 // assigning empty objects to each other:
168 A=A0;
169 v=v0;
170}
171
172template<typename MatrixType> void test_reference(const MatrixType& m) {
173 typedef typename MatrixType::Scalar Scalar;

Callers 1

test_nomallocFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected