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

2012-08-16 Thread John Reid
If you don't mind digging around in my code, you could download the source code for the STEME python package from pypi and look in the c++/myrrh directory. There is code to access multi_arrays from python in there. http://pypi.python.org/pypi/STEME/ In particular the file c++/myrrh/myrrh/python/m

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

2012-08-16 Thread alfa
Hi, Could you give more hints on this or any code snippet that I can implement this. I'm a bit naive in applying this. Please consider my 2D array of Vp_cpp(Vp equivalent in Python) is as below:     typedef boost::multi_array array_type;     typedef array_type::index index;     array_type Vp_c