[Numpy-discussion] numpy.ndarrays as C++ arrays (wrapped with boost)

Travis E. Oliphant oliphant at enthought.com
Tue Sep 11 19:10:27 EDT 2007


> nd to copy hundres of MB around unnecessarily.
>
> I think it is a real shame that boost currently doesn't properly support numpy
> out of the box, although numpy has long obsoleted both numarray and Numeric
> (which is both buggy and completely unsupported). All the more so since
> writing multimedial or scientific extensions (in which numpy's array interface
> is very natural to figure prominently) would seem such an ideal use for
> boost.python, as soon as complex classes or compound structures that need to
> efficiently support several (primitive) datatypes are involved, boost.python
> could really play its strenghts compared to Fortran/C based extensions.
>
>   
I think it could be that boost.python is waiting for the extended buffer 
interface which is coming in Python 3.0 and Python 2.6.  This would 
really be ideal for wrapping external code in a form that plays well 
with other libraries.


-Travis O.




More information about the NumPy-Discussion mailing list