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

John Salvatier jsalvati at u.washington.edu
Tue Dec 28 23:10:53 EST 2010

Wouldn't that be a cast? You do casts in Cython with <double>(expression)
and that should be the equivalent of float64 I think.

On Tue, Dec 28, 2010 at 3:32 PM, Keith Goodman <kwgoodman at gmail.com> wrote:

> 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).
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20101228/c3ee5b79/attachment.html>

More information about the NumPy-Discussion mailing list