[Numpy-discussion] access ndarray in C++

Andreas Klöckner lists@informa.tiker....
Wed Apr 23 14:30:22 CDT 2008


On Mittwoch 23 April 2008, Christopher Barker wrote:
> NOTE:
> Most folks now think that the pain of writing extensions completely by
> hand is not worth it -- it's just too easy to make reference counting
> mistakes, etc. Most folks are now using one of:
>
> Cython (or Pyrex)
> SWIG
> ctypes

IMO, all of these deal better with C than they do with C++. There is also a 
number of more C++-affine solutions:

- Boost Python [1]. Especially if you want usable C++ integration. (ie. more 
than basic templates, etc.)

- sip [2]. Used for PyQt.

Andreas

[1] http://www.boost.org/doc/libs/1_35_0/libs/python/doc/index.html
[2] http://www.riverbankcomputing.co.uk/sip/index.php
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080423/788d0876/attachment.bin 


More information about the Numpy-discussion mailing list