12 using namespace autodiff;
19 bp::enum_<FDLevel>(
"FDLevel",
"Finite difference level.")
20 .value(
"ToC1", FDLevel::TOC1)
21 .value(
"ToC2", FDLevel::TOC2);
23 bp::class_<finite_difference_wrapper<Scalar, FDLevel::TOC1>,
24 bp::bases<C1Function>>(
25 "FiniteDifferenceHelper",
26 "Make a function into a differentiable function using"
27 " finite differences.",
28 bp::init<const Manifold &, const Function &, const Scalar>(
29 bp::args(
"self",
"space",
"func",
"eps")));
31 bp::class_<finite_difference_wrapper<Scalar, TOC2>, bp::bases<C2Function>>(
32 "FiniteDifferenceHelperC2",
33 "Make a differentiable function into a twice-differentiable function "
35 " finite differences.",
36 bp::init<const Manifold &, const C1Function &, const Scalar>(
37 bp::args(
"self",
"space",
"func",
"eps")));