update vector_matrix