Re: [Numpy-discussion] numpy c api general array handling

2011-06-09 Thread Yoshi Rokuko
+ Mark Wiebe ---+ I believe what you may want is PyArray_ContiguousFromAny instead of PyArray_ContiguousFromObject. are you sure that there is a difference? i think its just the new name for the same thing right? best regards, yoshi

Re: [Numpy-discussion] numpy c api general array handling

2011-06-09 Thread Mark Wiebe
On Thu, Jun 9, 2011 at 3:39 AM, Yoshi Rokuko yo...@rokuko.net wrote: + Mark Wiebe ---+ I believe what you may want is PyArray_ContiguousFromAny instead of PyArray_ContiguousFromObject. are you sure that there is a difference? i think

[Numpy-discussion] numpy c api general array handling

2011-06-08 Thread Yoshi Rokuko
hey, i'm writing my first python module in c using numpy/arrayobject.h and i have some problems with different platforms (both linux but really different setup) so i suspect my array handling is not cor- rect. i'm used to c arrays and want to access large numpy arrays from within my c module

Re: [Numpy-discussion] numpy c api general array handling

2011-06-08 Thread Mark Wiebe
I believe what you may want is PyArray_ContiguousFromAny instead of PyArray_ContiguousFromObject. Cheers, Mark On Wed, Jun 8, 2011 at 2:58 AM, Yoshi Rokuko yo...@rokuko.net wrote: hey, i'm writing my first python module in c using numpy/arrayobject.h and i have some problems with different

Re: [Numpy-discussion] numpy c api general array handling

2011-06-08 Thread Christopher Barker
Mark Wiebe wrote: I believe what you may want is PyArray_ContiguousFromAny instead of PyArray_ContiguousFromObject. I would also strongly encourage you to take a look at Cython: http://cython.org/ It has built-in support for numpy arrays, so it can take care of a lot of this bookkeeping for