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

Function benchBasic

bench/basicbenchmark.h:41–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template<int Mode, typename MatrixType>
41double benchBasic(const MatrixType& mat, int iterations, int tries)
42{
43 const int rows = mat.rows();
44 const int cols = mat.cols();
45
46 MatrixType I(rows,cols);
47 MatrixType m(rows,cols);
48
49 initMatrix_identity(I);
50
51 Eigen::BenchTimer timer;
52 for(uint t=0; t<tries; ++t)
53 {
54 initMatrix_random(m);
55 timer.start();
56 benchBasic_loop<Mode>(I, m, iterations);
57 timer.stop();
58 cerr << m;
59 }
60 return timer.value();
61};
62
63#endif // EIGEN_BENCH_BASICBENCH_H

Callers

nothing calls this directly

Calls 7

initMatrix_identityFunction · 0.85
initMatrix_randomFunction · 0.85
rowsMethod · 0.45
colsMethod · 0.45
startMethod · 0.45
stopMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected