`astype(np.int)` would round off the values on the next line. To make this work, the Cython code would need to take a float array