Skip to content
A small example of using boost.python, boost.numpy and the C++ Eigen matrix library together
C++ Python Shell C
Find file
Latest commit 6c11f7b @julienr Cleanup


This is a simple example on how to use boost.python and boost.numpy to call c++ code form python and convert numpy arrays to Eigen.

To run (assuming you've boost.python already installed):

git submodule init
git submodule update
./      # will build boost.numpy
make test

Links :

There also is the 'ndarray' project, that aims at providing a multidimensionnal array library similar to numpy.ndarray for C++. Some of the code comes from ndarray :

TODO: - The from python converts do some data copy. This could hurt for big

Something went wrong with that request. Please try again.