xo-pyutil: + example (mostly to make LSP happy)

This commit is contained in:
Roland Conybeare 2024-06-17 17:41:50 -04:00
commit e169a0d276
5 changed files with 51 additions and 8 deletions

14
example/ex1/pyex1.cpp Normal file
View file

@ -0,0 +1,14 @@
/* @file pyex1.cpp */
#include "pyutilexample.hpp"
#include "xo/pyutil/pyutil.hpp"
#include <cmath>
namespace xo {
PYBIND11_MODULE(XO_PYUTILEXAMPLE_MODULE_NAME(), m) {
m.def("sqrt", [](double x) { return ::sqrt(x); });
}
}
/* end pyex1.cpp */