In mathematics, a square matrix is a Matrix with the same number of rows and columns. An n-by-n matrix is known as a square matrix of order \(n\).