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

Robert Kern robert.kern@gmail....
Fri Nov 28 23:02:37 CST 2008

On Thu, Nov 27, 2008 at 13:18, James Dominy <james@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