[SciPy-dev] Constructing an ndarray around a ctypes array

Robert Kern robert.kern at gmail.com
Sat Nov 29 00:02:37 EST 2008


On Thu, Nov 27, 2008 at 13:18, James Dominy <james at nbn.ac.za> wrote:
> Hi,
>
> Is there a way to create an ndarray from a ctypes array, such that they both use
> the same memory space.

from numpy.ctypeslib import as_array

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the SciPy-Dev mailing list