There is no reason to define this array in here. Move to the cython file and split [:, :2] and [:, 2:] in two separate arrays.