MCPcopy Create free account
hub / github.com/PX4/eigen / Scalar foo

Method Scalar foo

unsupported/test/forward_adolc.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template<typename Vector>
17EIGEN_DONT_INLINE typename Vector::Scalar foo(const Vector& p)
18{
19 typedef typename Vector::Scalar Scalar;
20 return (p-Vector(Scalar(-1),Scalar(1.))).norm() + (p.array().sqrt().abs() * p.array().sin()).sum() + p.dot(p);
21}
22
23template<typename _Scalar, int NX=Dynamic, int NY=Dynamic>
24struct TestFunc1

Callers

nothing calls this directly

Calls 7

absMethod · 0.80
sinMethod · 0.80
normMethod · 0.45
sumMethod · 0.45
sqrtMethod · 0.45
arrayMethod · 0.45
dotMethod · 0.45

Tested by

no test coverage detected