Commit ac5cf0b1 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

numpy.pxd: npy_complexX should be the C structs used by C NumPy, not Cython complex

parent 5a1d2cb6
...@@ -293,12 +293,6 @@ cdef extern from "numpy/arrayobject.h": ...@@ -293,12 +293,6 @@ cdef extern from "numpy/arrayobject.h":
ctypedef long double npy_float96 ctypedef long double npy_float96
ctypedef long double npy_float128 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: ctypedef struct npy_cfloat:
double real double real
double imag double imag
...@@ -311,6 +305,26 @@ cdef extern from "numpy/arrayobject.h": ...@@ -311,6 +305,26 @@ cdef extern from "numpy/arrayobject.h":
double real double real
double imag 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: ctypedef struct PyArray_Dims:
npy_intp *ptr npy_intp *ptr
int len int len
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment