Dag, review this, perhaps I'm missing something.

BTW, Did you notice that the 'return' type of the macro
"PyArray_ITEMSIZE" is not 'Py_ssize_t' but 'int' (at least in
numpy-1.2.0)??. Should this be fixed?

diff -r b23f31007194 Cython/Includes/numpy.pxd
--- a/Cython/Includes/numpy.pxd Thu Oct 16 20:26:34 2008 -0300
+++ b/Cython/Includes/numpy.pxd Fri Oct 17 14:54:36 2008 -0300
@@ -176,8 +176,8 @@ cdef extern from "numpy/arrayobject.h":
     cdef int PyArray_TYPE(ndarray arr)
     cdef int PyArray_NDIM(ndarray arr)
     cdef int PyArray_ISWRITEABLE(ndarray arr)
-    cdef npy_intp PyArray_STRIDES(ndarray arr)
-    cdef npy_intp PyArray_DIMS(ndarray arr)
+    cdef npy_intp* PyArray_STRIDES(ndarray arr)
+    cdef npy_intp* PyArray_DIMS(ndarray arr)
     cdef Py_ssize_t PyArray_ITEMSIZE(ndarray arr)
     cdef int PyArray_CHKFLAGS(ndarray arr, int flags)
     cdef int PyArray_HASFIELDS(ndarray arr, int flags)

-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to