> Hello everyone,
>
> A very simple novice question: how can I determine the NumPy type that
> Cython will agree to map to, say, the ordinary int type in C? I'm
> wrapping a C function that accepts an int * argument, and I'm looking
> for the appropriate NumPy type for a ctypedef statement. When I make
> the obvious guesses, I see the same error message that someone else
> describes here:

Use numpy.intc for that purpose.

However there's no numpy.intc_t in numpy.pxd in Cython, this is a bug,
patch welcome (but it would just be a typedef for "int").

I also believe numpy.double maps "more directly" to double float than
numpy.float64.

Dag Sverre

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to