1 #include "AllClassWrappers.h"
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>());
A class for integrating ODEs with CVODES.
void ODEWrapper(pybind11::module &m)
boost::property_tree::ptree ConvertDictToPtree(pybind11::dict dict)