From be9f6b6e8e39a711dcfa7806f894b8ec3ff49ca9 Mon Sep 17 00:00:00 2001 From: Jon Nordby Date: Sun, 27 Apr 2025 21:38:29 +0200 Subject: bindings: Example of using pybind11 with numpy --- bindings/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bindings/README.md (limited to 'bindings/README.md') diff --git a/bindings/README.md b/bindings/README.md new file mode 100644 index 0000000..dee8dfc --- /dev/null +++ b/bindings/README.md @@ -0,0 +1,28 @@ + +# Python module + +## Prerequisites + +The following packages are needed. +Install with pip or via OS package manager. + + pybind11 + numpy + setuptools + + +## Building + +To build the module + + python setup.py build_ext --inplace + +This will produce a shared library (`.so` on Linux) in PWD, that Python can load. + +## Test + +To use the module, see the .py file + + python test_galearn_pdm.py + + -- cgit v1.2.3