Keith Goodman wrote:
> np.float64 is fast, just hoping someone had a C-API inline version of
> np.float64() that is faster.

You're looking for PyArrayScalar_New and _ASSIGN.
See 
https://github.com/numpy/numpy/blob/master/numpy/core/include/numpy/arrayscalars.h

Undocumented (bad), but AFAIK public.

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to