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

2012-08-22 Thread alfa
Hi John, Thanks a lot for your implementation. In multi_array_to_numpy.h,  can you give more hints on which method/function that I can possibly use if I can include it in my implementation as a header file. Thanks in advance. From: John Reid To: cplusplus

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

2012-08-22 Thread John Reid
On 22/08/12 11:13, alfa wrote: > Hi John, > > Thanks a lot for your implementation. In multi_array_to_numpy.h, can > you give more hints on which method/function that I can possibly use if > I can include it in my implementation as a header file. > > Thanks in advance. > src/python/man_module.c

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

2012-08-22 Thread alfa
Hi John, I'm sorry, I'm a bit confused because previously you said that the relevant implementation resides in "c++/myrrh/myrrh/python/multi_array_to_numpy.h"but now, you point to "src/python/man_module.cpp and src/python/multi_array_to_numpy.cpp". Hope you understand my problem of having 2D a

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

2012-08-22 Thread John Reid
On 22/08/12 11:45, alfa wrote: > Hi John, > > I'm sorry, I'm a bit confused because previously you said that the > relevant implementation resides in > "c++/myrrh/myrrh/python/multi_array_to_numpy.h"but now, you point to > "src/python/man_module.cpp and src/python/multi_array_to_numpy.cpp". > Ho

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

2012-08-22 Thread John Reid
On 22/08/12 11:58, John Reid wrote: > > > On 22/08/12 11:45, alfa wrote: >> Hi John, >> >> I'm sorry, I'm a bit confused because previously you said that the >> relevant implementation resides in >> "c++/myrrh/myrrh/python/multi_array_to_numpy.h"but now, you point to >> "src/python/man_module.c

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

2012-08-22 Thread alfa
Hi John, "" From: John Reid To: cplusplus-sig@python.org Sent: Wednesday, August 22, 2012 12:58 PM Subject: Re: [C++-sig] Accessing 2D array from python in C++ Hi John, "You can call the expose_converters< npy_double >() function to expose multiarrays of do

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

2012-08-22 Thread alfa
Hi John, "You can call the expose_converters< npy_double >() function to expose multiarrays of doubles to python as numpy arrays." I'm afraid you understood that I have a C++ array that is to be exposed in Python. Actually, my problem is the other way around in which I have a Python array that

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

2012-08-22 Thread John Reid
On 22/08/12 12:28, alfa wrote: > Hi John, > > "You can call the expose_converters< npy_double >() function to expose > multiarrays of doubles to python as numpy arrays." > > I'm afraid you understood that I have a C++ array that is to be exposed > in Python. Actually, my problem is the other wa