Re: [C++-sig] Accessing 2D array from python in C++

2012-08-14 Thread Jim Bosch
On Aug 14, 2012 4:25 AM, "shahmi" wrote: > > Hi, > > I have tried to access/expose 2D array from python in C++ using boost::multi_array. Nevertheless, it seems that the boost::multi_array datatype is not supported. Is there any way to resolve this? My way of accessing it as below: > >

Re: [C++-sig] Interact python with C++

2012-08-14 Thread Niall Douglas
Could use Cython. You're still going to have to use DLLs though. With Python it's very hard to avoid DLLs. Niall On 13 Aug 2012 at 16:05, Murat Atalay wrote: > Hello Everyone, > > Currently, I am trying to call C++ classes and functions from python inside > my C++ program. I want to be able t

[C++-sig] Accessing 2D array from python in C++

2012-08-14 Thread shahmi
Hi, I have tried to access/expose 2D array from python in C++ using boost::multi_array. Nevertheless, it seems that the boost::multi_array datatype is not supported. Is there any way to resolve this? My way of accessing it as below:             boost::python::object Vp = main_namespace["Vp"

Re: [C++-sig] Interact python with C++

2012-08-14 Thread John Reid
On 14/08/12 00:05, Murat Atalay wrote: > Hello Everyone, > > Currently, I am trying to call C++ classes and functions from python > inside my C++ program. I want to be able to edit the members and call > functions from python. I am using VS2010 with boost libraries. Boost > comes with very big em