A diagonal matrix is a square matrix in which all the off-diagonal elements are zero. The diagonal elements can be any scalar value. It is of the form D[nx n].
A diagonal matrix is a square matrix in which all the off-diagonal elements are zero. The diagonal elements can be any scalar value. It is of the form D[nx n].