|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-05-15 08:38:44
Nigel Stewart <ns_at_[hidden]> writes:
> Hi all,
>
> We're looking to share some heavy-weight numerical data in
> a mixed language C++/Python environment.
>
> boost::python::numeric::array provides a C++ binding
> for the Python numeric array. However, we'd prefer to
> have an STL compatible (std::vector compatible) interface to
> the data, rather than python-ising our C++.
>
> The underlying runtime issue is to store one copy of the
> contiguous 1D data in a way that both C++ and Python can
> read and write, that will follow the Python memory
> management scheme.
>
> Has anyone come across a std::vector compatible wrapper
> for PyArrayObject? Any thoughts?
It's easy enough to write one.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk