a more confusing way
parent
10b37db234
commit
c9a6b16bc2
|
|
@ -466,9 +466,9 @@ namespace gtsam {
|
|||
*/
|
||||
template<class X>
|
||||
inline Matrix numericalHessian(boost::function<double(const X&)> f, const X& x, double delta=1e-5) {
|
||||
Vector (*numGrad)(boost::function<double(const X&)>,const X&, double) = &numericalGradient<X>;
|
||||
return numericalDerivative11<X>(boost::function<Vector(const X&)>(boost::bind(
|
||||
numGrad, f, _1, delta)), x, delta);
|
||||
static_cast<Vector (*)(boost::function<double(const X&)>,const X&, double)>(&numericalGradient<X>),
|
||||
f, _1, delta)), x, delta);
|
||||
}
|
||||
|
||||
template<class X>
|
||||
|
|
|
|||
Loading…
Reference in New Issue