[Cython] construction numpy arrays
Robert Bradshaw
robertwb at math.washington.edu
Thu Nov 13 19:01:35 CET 2008
On Nov 13, 2008, at 6:35 AM, Uwe Schmitt wrote:
> Hi,
>
> is there a fast and simple way to convert a given
> chunk of memory to a coresponding numpy array ?
> Or do I have to construct the array entry by entry ?
You can grab the numpy underlying data as a void* and do a memcpy.
Perhaps you can even avoid the memcpy, but I'm not sure.
- Robert
More information about the Cython-dev
mailing list