If you look in the numpy header file included with cython (e.g. in the master branch, it is __init__.pxd
), you'll find
ctypedef double npy_double
and
ctypedef npy_double float_t
In other words, float_t
is double
, so there should be no advantange to using np.float_t
.