[C++-sig] GSoC 2011 proposal for improved NumPy wrapper ?

John Reid j.reid at mail.cryst.bbk.ac.uk
Fri Mar 25 10:22:12 CET 2011


On 24/03/11 20:14, Jim Bosch wrote:
> If we start with boost/python/numpy, I think the most important tasks are:
> - Add "object manager" classes for additional numpy types ("object
> managers" are Boost.Python versions of Python types; right now
> boost/python/numpy only supports the most important numpy types, like
> numpy.ndarray and numpy.dtype). Most of these will be trivial, but there
> may be a lot of them. We want complete coverage of the numpy C-API.
> - Add additional methods to the numpy.ndarray object manager
> (numpy.ndarray has a ton of methods in Python; I'm not sure all of them
> need to be supported from C++ if we can do attr("method")())
> - Fix conversions between numpy scalar types and C++ POD types (other
> projects mentioned on this list have solved this at some level).
> - Review and possibly revise the array-from-data API (i.e. how should
> the user pass in shape and strides?)
> - Review and possibly revise how the numpy C-API and its ugly
> preprocessor macros are hidden.
> - Add documentation.
> - Integrate into the boost build system.

Is support planned for boost::multi_arrays? If not, can I add my +1?

John.



More information about the Cplusplus-sig mailing list