#include <pybind11/pybind11.h> #include "complexf.h" #include "hello.h" PYBIND11_MODULE(_hello, m) { m.doc() = "pybind11 example plugin"; // optional module docstring m.def("add", &add, "A function which adds two numbers"); m.def("complexf", &complexf, "complex(a,b) = add(a,b) + 2"); }