This repository demonstrates how to integrate C++ code with NumPy using pybind11 and Eigen tensors.
The repository has a Dockerfile and uses cmake.
git clone https://github.com/henricryden/pybind11_eigen.git
cd pybind11_eigen/docker
docker build . -t pybind11_eigen
docker run -v <PATH_TO_THIS_REPO>:/code/ --rm -it --hostname pybind11_eigen --workdir /code pybind11_eigen
mkdir build
cd build
cmake ../src
make
exit
python ./python_project/test_wrapper.py