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

Function testMatrixExponential

unsupported/test/matrix_function.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98template<typename MatrixType>
99void testMatrixExponential(const MatrixType& A)
100{
101 typedef typename internal::traits<MatrixType>::Scalar Scalar;
102 typedef typename NumTraits<Scalar>::Real RealScalar;
103 typedef std::complex<RealScalar> ComplexScalar;
104
105 VERIFY_IS_APPROX(A.exp(), A.matrixFunction(internal::stem_function_exp<ComplexScalar>));
106}
107
108template<typename MatrixType>
109void testMatrixLogarithm(const MatrixType& A)

Callers 1

testMatrixFunction · 0.85

Calls 2

matrixFunctionMethod · 0.80
expMethod · 0.45

Tested by

no test coverage detected