Re: [C++-sig] Simple Boost.Python and NumPy example--help me make, it better!

2009-06-29 Thread Garth Coghlan
Hi Chris, Have you looked at the PyUblas library? This provides a neat interface to C++ with Numpy arrays. On the C++ side you end up with a class that inherits from boost::ublas::matrix, which does no data copying, and which has a nice interface.

[C++-sig] Simple Boost.Python and NumPy example--help me make it better!

2009-06-26 Thread Christopher A Mejia
Hi, I've been trying to do something that is I would think is a very common task: I'm trying to expose to Python a C++ class with a member function that inputs an array of data. On the Python side, I would like to use NumPy to store this array of data. I've spent many hours searching online for