No need for the np.ascontiguous of you define it as [:, :]