def npy_cdouble_from_double_complex(var):
 res = '_complexstuff.npy_cdouble_from_double_complex({})'.format(var)
 return res

def npy_cdouble_from_double_complex ( var ) : res = '_complexstuff.npy_cdouble_from_double_complex({})' . format ( var ) return res
cast a cython double complex to a numpy cdouble .