[Numpy-discussion] State-of-the-art to use a C/C++ library from Python

Sylvain Corlay sylvain.corlay at gmail.com
Wed Aug 31 13:14:24 EDT 2016

+1 on pybind11.


On Wed, Aug 31, 2016 at 1:28 PM, Michael Bieri <mibieri at gmail.com> wrote:

> Hi all
> There are several ways on how to use C/C++ code from Python with NumPy, as
> given in http://docs.scipy.org/doc/numpy/user/c-info.html . Furthermore,
> there's at least pybind11.
> I'm not quite sure which approach is state-of-the-art as of 2016. How
> would you do it if you had to make a C/C++ library available in Python
> right now?
> In my case, I have a C library with some scientific functions on matrices
> and vectors. You will typically call a few functions to configure the
> computation, then hand over some pointers to existing buffers containing
> vector data, then start the computation, and finally read back the data.
> The library also can use MPI to parallelize.
> Best regards,
> Michael
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160831/881c2df7/attachment.html>

More information about the NumPy-Discussion mailing list