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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 cimport c_python
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3 cdef extern from "numpy/arrayobject.h":
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4 ctypedef class numpy.ndarray [object PyArrayObject]:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5 cdef char *data
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 cdef int nd
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 cdef c_python.Py_intptr_t *dimensions
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8 cdef c_python.Py_intptr_t *strides
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 cdef object base
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10 # descr not implemented yet here...
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 cdef int flags
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 cdef int itemsize
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 cdef object weakreflist
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15 cdef void import_array()

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