An inverse matrix is a matrix that , when multiplied by another matrix , equals the identity matrix . A square matrix is a matrix which has the same number of rows and columns . An n-by-n matrix is known as a square matrix of order n. Any two square matrices of the same order can be added and multiplied .