Commit dbde17d3 authored by Steve T's avatar Steve T
Browse files

added operator bindings for polynomials

parent 54c51f33
......@@ -790,6 +790,14 @@ BOOST_PYTHON_MODULE(curves) {
"Loads *this from a binary file.")
.def(bp::self == bp::self)
.def(bp::self != bp::self)
.def(self += polynomial_t())
.def(self -= polynomial_t())
.def(self *= double())
.def(self /= double())
.def(self + polynomial_t())
.def(self - polynomial_t())
.def(self * double())
.def(self / double())
.def_pickle(curve_pickle_suite<polynomial_t>());
/** END polynomial function**/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment