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.

Re: [C++-sig] pybindgen: allow_subclassing option causing reference parameters to be copied?

2009-06-29 Thread J. Michael Owen
Hi Gustavo, Hmm. I tried this example, but the generated code seems to be still trying to generate a copy. Here's the example source I'm trying expose: #include class A { public: A(const int val): mVal(val) {} private: int mVal; A(); A(const A& rhs); A& operator=(const A& rhs);