Skip to content

Commit

Permalink
Add doc for pydrake.symbolic.Expression and pydrake.symbolic.Monomial (
Browse files Browse the repository at this point in the history
  • Loading branch information
soonho-tri authored Sep 3, 2019
1 parent f84e1ab commit de40a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/pydrake/symbolic_py.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ PYBIND11_MODULE(symbolic, m) {
});

// TODO(m-chaturvedi) Add Pybind11 documentation for operator overloads, etc.
py::class_<Expression> expr_cls(m, "Expression");
py::class_<Expression> expr_cls(m, "Expression", doc.Expression.doc);
expr_cls.def(py::init<>(), doc.Expression.ctor.doc_0args)
.def(py::init<double>(), doc.Expression.ctor.doc_1args_d)
.def(py::init<const Variable&>(), doc.Expression.ctor.doc_1args_var)
Expand Down Expand Up @@ -451,7 +451,7 @@ PYBIND11_MODULE(symbolic, m) {
.def("logical_not", [](const Formula& a) { return !a; });

// TODO(m-chaturvedi) Add Pybind11 documentation for operator overloads, etc.
py::class_<Monomial>(m, "Monomial")
py::class_<Monomial>(m, "Monomial", doc.Monomial.doc)
.def(py::init<const Variable&>(), doc.Monomial.ctor.doc_1args_var)
.def(py::init<const Variable&, int>(),
doc.Monomial.ctor.doc_2args_var_exponent)
Expand Down

0 comments on commit de40a3a

Please sign in to comment.