MCPcopy Create free account
hub / github.com/avaxman/Directional / testMatrixType

Function testMatrixType

external/eigen/unsupported/test/matrix_function.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

EIGEN_DECLARE_TESTFunction · 0.70

Calls 4

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

Tested by

no test coverage detected