Re: [Numpy-discussion] Problem with using PyArray_AsCArray

2011-12-09 Thread Chris.Barker
On 12/9/11 11:25 AM, Ng, Enrico wrote: > I am trying to pass a multi-dimensional ndarray to C as a multi-dimensional C > array for the purposes of passing it to mathematica. I am using > PyArray_AsCArray but getting an error. I understand that SWIG, Boost, et. al are perhaps too heavyweight for

[Numpy-discussion] Problem with using PyArray_AsCArray

2011-12-09 Thread Ng, Enrico
I am trying to pass a multi-dimensional ndarray to C as a multi-dimensional C array for the purposes of passing it to mathematica. I am using PyArray_AsCArray but getting an error. ## Python Code: import Image from scipy.misc import fromimage