Mercurial > hg > pymctf
annotate 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 |
rev | line source |
---|---|
0 | 1 cimport c_python |
2 | |
3 cdef extern from "numpy/arrayobject.h": | |
4 ctypedef class numpy.ndarray [object PyArrayObject]: | |
5 cdef char *data | |
6 cdef int nd | |
7 cdef c_python.Py_intptr_t *dimensions | |
8 cdef c_python.Py_intptr_t *strides | |
9 cdef object base | |
10 # descr not implemented yet here... | |
11 cdef int flags | |
12 cdef int itemsize | |
13 cdef object weakreflist | |
14 | |
15 cdef void import_array() |