performance loss after vectorization in numpy,"np.allclose(ans1, ans2)"