Commented out numerical derivative with double return type. This caused
ambiguity with the Vector return type version.release/4.3a0
parent
9e39df6e88
commit
f462c8977e
|
@ -118,11 +118,11 @@ namespace gtsam {
|
||||||
return numericalDerivative11<Y,X>(boost::bind(h, _1), x, delta);
|
return numericalDerivative11<Y,X>(boost::bind(h, _1), x, delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** remapping for double valued functions */
|
// /** remapping for double valued functions */
|
||||||
template<class X>
|
// template<class X>
|
||||||
Matrix numericalDerivative11(boost::function<double(const X&)> h, const X& x, double delta=1e-5) {
|
// Matrix numericalDerivative11(boost::function<double(const X&)> h, const X& x, double delta=1e-5) {
|
||||||
return numericalDerivative11<LieVector, X>(boost::bind(makeLieVectorD, boost::bind(h, _1)), x, delta);
|
// return numericalDerivative11<LieVector, X>(boost::bind(makeLieVectorD, boost::bind(h, _1)), x, delta);
|
||||||
}
|
// }
|
||||||
|
|
||||||
template<class X>
|
template<class X>
|
||||||
Matrix numericalDerivative11(double (*h)(const X&), const X& x, double delta=1e-5) {
|
Matrix numericalDerivative11(double (*h)(const X&), const X& x, double delta=1e-5) {
|
||||||
|
|
Loading…
Reference in New Issue