#include
#include "math.hpp"
namespace py = pybind11;
PYBIND11_PLUGIN(python_cpp_example) {
py::module m("python_cpp_example", R"doc(
Python module
-----------------------
.. currentmodule:: python_cpp_example
.. autosummary::
:toctree: _generate
add
subtract
)doc");
m.def("add", &add, R"doc(
Add two numbers
Some other information about the add function.
)doc");
m.def("subtract", &subtract, R"doc(
Subtract two numbers
Some other information about the subtract function.
)doc");
return m.ptr();
}