This is an example of wrapping some code that uses the Eigen matrix library in order to call it from Python. Additionally, it shows how to pass complex valued data from Python to Eigen and vice versa.
You can build the code in two ways:
-
Using distutils by executing
python setup.py build_ext --inplacewhich will buildnp_test.soin the current directory. -
Using cmake
cd build; cmake ..; makewhich will buildnp_test.soin the build directory.
- Write tests for list code and whatnot.