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

Function zeroReduction

test/zerosized.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13template<typename MatrixType> void zeroReduction(const MatrixType& m) {
14 // Reductions that must hold for zero sized objects
15 VERIFY(m.all());
16 VERIFY(!m.any());
17 VERIFY(m.prod()==1);
18 VERIFY(m.sum()==0);
19 VERIFY(m.count()==0);
20 VERIFY(m.allFinite());
21 VERIFY(!m.hasNaN());
22}
23
24
25template<typename MatrixType> void zeroSizedMatrix()

Callers 2

zeroSizedMatrixFunction · 0.85
zeroSizedVectorFunction · 0.85

Calls 7

allFiniteMethod · 0.80
hasNaNMethod · 0.80
allMethod · 0.45
anyMethod · 0.45
prodMethod · 0.45
sumMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected