edit the input matrix's info