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

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 4 05:06:09 CEST 2006


Chris Bartels wrote:

> This means creating new numpy arrays and associated buffers by use of 
> malloc and then exporting these into numpy python arrays.

You can create a NumPy array in Pyrex the same way
you would in Python, and then manipulate its contents.
If you're dealing with something big like a video
frame, the overhead of creating the array shouldn't
be very significant.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiam!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+



More information about the Pyrex mailing list