36 bp::make_constructor(&constructor,bp::default_call_policies(),bp::args(
"x",
"y")))
38 .def(
"from_json", &ADFun::from_json, bp::args(
"self",
"json"))
41 .def(
"size_order", &ADFun::size_order, bp::arg(
"self"))
42 .def(
"Dependent",&Dependent,
43 bp::args(
"self",
"x",
"y"))
44 .def(
"Forward", (Vector (ADFun::*)(
size_t ,
size_t,
const Vector&))(&ADFun::Forward),
45 bp::args(
"self",
"q",
"r",
"x"))
47 bp::args(
"self",
"q",
"xq"))
48 .def(
"Reverse", (Vector (ADFun::*)(
size_t,
const Vector&))(&ADFun::Reverse),
49 bp::args(
"self",
"p",
"v"))
50 .def(
"Reverse", (Vector (ADFun::*)(
size_t,
const Vector&))(&ADFun::Reverse),
51 bp::args(
"self",
"p",
"v"))
52 .def(
"Hessian", (Vector (ADFun::*)(
const Vector&,
const Vector&))(&ADFun::Hessian),
53 bp::args(
"self",
"x",
"w"))
54 .def(
"Hessian", (Vector (ADFun::*)(
const Vector&,
size_t))(&ADFun::Hessian),
55 bp::args(
"self",
"x",
"i"))
56 .def(
"Jacobian", (Vector (ADFun::*)(
const Vector&))(&ADFun::Jacobian),
57 bp::args(
"self",
"x"))
58 .def(
"optimize", &ADFun::optimize, bp::args(
"self",
"options"))