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

Function testHyperbolicFunctions

unsupported/test/matrix_function.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127template<typename MatrixType>
128void testHyperbolicFunctions(const MatrixType& A)
129{
130 // Need to use absolute error because of possible cancellation when
131 // adding/subtracting expA and expmA.
132 VERIFY_IS_APPROX_ABS(A.sinh(), (A.exp() - (-A).exp()) / 2);
133 VERIFY_IS_APPROX_ABS(A.cosh(), (A.exp() + (-A).exp()) / 2);
134}
135
136template<typename MatrixType>
137void testGonioFunctions(const MatrixType& A)

Callers 1

testMatrixFunction · 0.85

Calls 3

sinhMethod · 0.80
coshMethod · 0.80
expMethod · 0.45

Tested by

no test coverage detected