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

Method Scalar foo

unsupported/test/autodiff.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template<typename Vector>
26EIGEN_DONT_INLINE typename Vector::Scalar foo(const Vector& p)
27{
28 typedef typename Vector::Scalar Scalar;
29 return (p-Vector(Scalar(-1),Scalar(1.))).norm() + (p.array() * p.array()).sum() + p.dot(p);
30}
31
32template<typename _Scalar, int NX=Dynamic, int NY=Dynamic>
33struct TestFunc1

Callers

nothing calls this directly

Calls 4

normMethod · 0.45
sumMethod · 0.45
arrayMethod · 0.45
dotMethod · 0.45

Tested by

no test coverage detected