[Numpy-discussion] NumPy C-API equivalent of np.float64()

Keith Goodman kwgoodman at gmail.com
Tue Dec 28 18:32:55 EST 2010


I'm looking for the C-API equivalent of the np.float64 function,
something that I could use inline in a Cython function.

I don't know how to write the function. Anyone have one sitting
around? I'd like to use it, if it is faster than np.float64 (np.int32,
np.float32, ...) in the Bottleneck package when the output is a
scalar, for example bn.median(arr, axis=None).



More information about the NumPy-Discussion mailing list