Add 'xo-pyutil/' from commit 'a2cb8ae60f'
git-subtree-dir: xo-pyutil git-subtree-mainline:219038c445git-subtree-split:a2cb8ae60f
This commit is contained in:
commit
707562f1f2
11 changed files with 347 additions and 0 deletions
14
xo-pyutil/example/ex1/pyex1.cpp
Normal file
14
xo-pyutil/example/ex1/pyex1.cpp
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue