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

Function check_const_correctness

test/sparse_ref.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34template<typename PlainObjectType> void check_const_correctness(const PlainObjectType&)
35{
36 // verify that ref-to-const don't have LvalueBit
37 typedef typename internal::add_const<PlainObjectType>::type ConstPlainObjectType;
38 VERIFY( !(internal::traits<Ref<ConstPlainObjectType> >::Flags & LvalueBit) );
39 VERIFY( !(internal::traits<Ref<ConstPlainObjectType, Aligned> >::Flags & LvalueBit) );
40 VERIFY( !(Ref<ConstPlainObjectType>::Flags & LvalueBit) );
41 VERIFY( !(Ref<ConstPlainObjectType, Aligned>::Flags & LvalueBit) );
42}
43
44template<typename B>
45EIGEN_DONT_INLINE void call_ref_1(Ref<SparseMatrix<float> > a, const B &b) { VERIFY_IS_EQUAL(a.toDense(),b.toDense()); }

Callers 1

test_sparse_refFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_sparse_refFunction · 0.56