view c_numpy.pxd @ 6:301673f39ff6 default tip

fix numpy import check
author pmeerw@pan
date Tue, 06 May 2008 22:24:13 +0200
parents 4214d9245f8e
children
line wrap: on
line source

cimport c_python

cdef extern from "numpy/arrayobject.h":
    ctypedef class numpy.ndarray [object PyArrayObject]:
        cdef char *data
        cdef int nd
        cdef c_python.Py_intptr_t *dimensions
        cdef c_python.Py_intptr_t *strides
        cdef object base
        # descr not implemented yet here...
        cdef int flags
        cdef int itemsize
        cdef object weakreflist

    cdef void import_array()

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.