Commented out numerical derivative with double return type. This caused

ambiguity with the Vector return type version.
release/4.3a0
Stephen Williams 2013-05-08 13:24:00 +00:00
parent 9e39df6e88
commit f462c8977e
1 changed files with 5 additions and 5 deletions

View File

@ -118,11 +118,11 @@ namespace gtsam {
return numericalDerivative11<Y,X>(boost::bind(h, _1), x, delta);
}
/** remapping for double valued functions */
template<class X>
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);
}
// /** remapping for double valued functions */
// template<class X>
// 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);
// }
template<class X>
Matrix numericalDerivative11(double (*h)(const X&), const X& x, double delta=1e-5) {