From ac5cf0b1430ffdb7516bd2ce5c577d74414ffd0b Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Tue, 20 Oct 2009 10:23:01 +0200 Subject: [PATCH] numpy.pxd: npy_complexX should be the C structs used by C NumPy, not Cython complex --- Cython/Includes/numpy.pxd | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/Cython/Includes/numpy.pxd b/Cython/Includes/numpy.pxd index 3f6c602f..4fa74102 100644 --- a/Cython/Includes/numpy.pxd +++ b/Cython/Includes/numpy.pxd @@ -293,12 +293,6 @@ cdef extern from "numpy/arrayobject.h": ctypedef long double npy_float96 ctypedef long double npy_float128 - ctypedef float complex npy_complex64 - ctypedef double complex npy_complex128 - ctypedef long double complex npy_complex120 - ctypedef long double complex npy_complex192 - ctypedef long double complex npy_complex256 - ctypedef struct npy_cfloat: double real double imag @@ -311,6 +305,26 @@ cdef extern from "numpy/arrayobject.h": double real double imag + ctypedef struct npy_complex64: + double real + double imag + + ctypedef struct npy_complex128: + double real + double imag + + ctypedef struct npy_complex160: + double real + double imag + + ctypedef struct npy_complex192: + double real + double imag + + ctypedef struct npy_complex256: + double real + double imag + ctypedef struct PyArray_Dims: npy_intp *ptr int len -- 2.26.2