Describe Square and Diagonal Matrix.
Square matrix - A matrix A is said to be square while it has the similar number of rows as columns.
Diagonal Matrix - It is a square matrix along with zeros everywhere in the matrix except on the principal diagonal.