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

Function test_ref_overloads

test/ref.cpp:242–256  ·  view source on GitHub ↗

See also bug 969

Source from the content-addressed store, hash-verified

240
241// See also bug 969
242void test_ref_overloads()
243{
244 MatrixXd Ad, Bd;
245 RowMatrixXd rAd, rBd;
246 VERIFY( test_ref_overload_fun1(Ad)==1 );
247 VERIFY( test_ref_overload_fun1(rAd)==2 );
248
249 MatrixXf Af, Bf;
250 VERIFY( test_ref_overload_fun2(Ad)==4 );
251 VERIFY( test_ref_overload_fun2(Ad+Bd)==4 );
252 VERIFY( test_ref_overload_fun2(Af+Bf)==5 );
253
254 ArrayXd A, B;
255 test_ref_ambiguous(A, B);
256}
257
258void test_ref()
259{

Callers 1

test_refFunction · 0.85

Calls 3

test_ref_overload_fun1Function · 0.85
test_ref_overload_fun2Function · 0.85
test_ref_ambiguousFunction · 0.85

Tested by

no test coverage detected