[Pyrex] experiences with numpy array import/export in pyrex
Lenard Lindstrom
len-l at telus.net
Wed May 3 17:18:03 CEST 2006
I haven't. But when I installed numpy I noticed there is a Pyrex
section in the numpy doc that has an example as well as two .pyd
files that delcare the numpy C api.
Lenard Lindstrom
<len-l at telus.net>
On 3 May 2006 at 15:09, Chris Bartels wrote:
>
> Hi,
>
> I was curious if there are people who have tried numpy/pyrex in such
> a way that they could dynamically export arrays into python.
>
> What I had in mind was a pyrex function which takes a number of numpy
> arrays as input (images of a video sequence). Then manipulate the
> array data (fast) by use of a pointer to the raw array data. And
> output a number of newly allocated arrays (filled and allocated in C
> of course, but returning python numpy objects).
>
> This means creating new numpy arrays and associated buffers by use of
> malloc and then exporting these into numpy python arrays.. quite
> difficult...
>
> Anyone?
>
> Y.S.,
> Chris
More information about the Pyrex
mailing list