But it creates a copy (right?), unless I do assign it won't just change z:

    z = z.reshape(res_shape)