update matrix_trans