Ctypes, pyrex, swig or cython for this problem?

I have about 20 simple C ++ classes that represent different probability distributions. I would like to make them available in Python. What is the easiest way to do this? I am not opposed to the program automatically creating wrappers, but I do not want to repeat types.

In addition, some of my classes use the Boost uBLAS libraries. Is there a way to automatically pass in a numpy array from Python?

+5
source share
1 answer

Actually, not one of them.

I use Boost.Python to work with the C ++ library with Python.

uBlas NumPy, . , PyUblas, NumPy uBlas.

+2

All Articles