In numpy, if I have a vector of zeros like this
vec1 = np.array([0., 0., 0., 0., 0., 0., 0.])
and another one like this vec2 = np.array([1.,2.,3.]), which is the quickest way to obtain
vec3 = np.array([1., 2., 3., 0., 0., 0., 0.])
(Basicaly I want the original vector whose initial entries are filled with the ones of the second vector).
vec1[:len(vec2)] = vec2