Re: [Cython] how to get a double** from np.ndarray[double, ndim=2]

2011-09-05 Thread Dag Sverre Seljebotn
NumPy does not have a double** anywhere, what you did is the correct solution (as long as you make sure the array is C-contiguous). -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. "Adrian Martínez Vargas" wrote: Hi, I would like to get a double** from a 2d numpy array i

[Cython] how to get a double** from np.ndarray[double, ndim=2]

2011-09-05 Thread Adrian Martínez Vargas
Hi, I would like to get a double** from a 2d numpy array in cython in order to call properly some function written in C++. Can some one to give a pure cython solution? From now I have a double* from the np.ndarray[double, ndim=2] .data. I'm getting the double array in C++ with: array2D