[Pyrex] experiences with numpy array import/export in pyrex

Chris Bartels c.l.l.bartels at gmail.com
Wed May 3 15:09:23 CEST 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20060503/4d6f21ad/attachment.html


More information about the Pyrex mailing list