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

Function testMatrixType

unsupported/test/matrix_function.cpp:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169template<typename MatrixType>
170void testMatrixType(const MatrixType& m)
171{
172 // Matrices with clustered eigenvalue lead to different code paths
173 // in MatrixFunction.h and are thus useful for testing.
174 typedef typename MatrixType::Index Index;
175
176 const Index size = m.rows();
177 for (int i = 0; i < g_repeat; i++) {
178 testMatrix(MatrixType::Random(size, size).eval());
179 testMatrix(randomMatrixWithRealEivals<MatrixType>(size));
180 testMatrix(randomMatrixWithImagEivals<MatrixType>::run(size));
181 }
182}
183
184void test_matrix_function()
185{

Callers 1

test_matrix_functionFunction · 0.70

Calls 4

testMatrixFunction · 0.85
runFunction · 0.50
rowsMethod · 0.45
evalMethod · 0.45

Tested by

no test coverage detected