subrepo: subdir: "xo-pyutil" merged: "dfd5229b" upstream: origin: "git@github.com:Rconybea/xo-pyutil.git" branch: "main" commit: "dfd5229b" git-subrepo: version: "0.4.9" origin: "???" commit: "???"
14 lines
263 B
C++
14 lines
263 B
C++
/* @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 */
|