MUQ  0.4.3
ODEWrapper.cpp
Go to the documentation of this file.
1 #include "AllClassWrappers.h"
2 
4 
5 #include "MUQ/Modeling/ODE.h"
6 
7 using namespace muq::Modeling;
8 using namespace muq::Utilities;
9 namespace py = pybind11;
10 
11 void PythonBindings::ODEWrapper(py::module &m) {
12  py::class_<ODE, ModPiece, std::shared_ptr<ODE> >(m, "ODE")
13  .def(py::init( [] (std::shared_ptr<ModPiece> const& rhs, Eigen::VectorXd const& times, py::dict const& d) { return new ODE(rhs, times, ConvertDictToPtree(d)); }), py::keep_alive<1, 2>())
14  .def(py::init( [] (std::shared_ptr<ModPiece> const& rhs, Eigen::VectorXd const& times, bool isAuto, py::dict const& d) { return new ODE(rhs, times, isAuto, ConvertDictToPtree(d)); }), py::keep_alive<1, 2>());
15 
16 }
A class for integrating ODEs with CVODES.
Definition: ODE.h:31
void ODEWrapper(pybind11::module &m)
boost::property_tree::ptree ConvertDictToPtree(pybind11::dict dict)