Matrix types

Square Matrix

A matrix where the number of rows(m) equals to the number of columns(n).

Main diagonal: The vector of values along the diagonal of the matrix from the top left to the bottom right. (a11,a22,a33)(a_{11}, a_{22}, a_{33})

SquareMatrixoforder3;A=[a11a12a13a21a22a23a31a32a33]Square\hspace{0.1cm}Matrix\hspace{0.1cm}of\hspace{0.1cm}order\hspace{0.1cm}3;\hspace{0.1cm}A=\begin{bmatrix} a_{11} \hspace{0.2cm} a_{12} \hspace{0.2cm} a_{13} \\ a_{21} \hspace{0.2cm} a_{22}\hspace{0.2cm} a_{23} \\ a_{31} \hspace{0.2cm} a_{32}\hspace{0.2cm} a_{33} \end{bmatrix}

Symmetric Matrix

A type of square matrix where the top-right triangle is the same as the bottom-left triangle. Note: The axis of symmetry is always the main diagonal.

A=[1234521234321234321254321],A=ATA=\begin{bmatrix} 1 \hspace{0.2cm} 2 \hspace{0.2cm} 3\hspace{0.2cm}4\hspace{0.2cm}5 \\ 2\hspace{0.2cm}1\hspace{0.2cm}2\hspace{0.2cm}3\hspace{0.2cm}4 \\ 3\hspace{0.2cm}2\hspace{0.2cm}1\hspace{0.2cm}2\hspace{0.2cm}3 \\ 4\hspace{0.2cm}3\hspace{0.2cm}2\hspace{0.2cm}1\hspace{0.2cm}2 \\ 5\hspace{0.2cm}4\hspace{0.2cm}3\hspace{0.2cm}2\hspace{0.2cm}1 \end{bmatrix}, A = A^T

Triangular Matrix

A type of square matrix that has values in the upper-right or lower-left triangle and filled with zeros in the rest.

UpperTriangularMatrixA=[123023003],LowerTriangularMatrixB=[100120123]Upper Triangular Matrix A=\begin{bmatrix} 1 \hspace{0.2cm} 2 \hspace{0.2cm} 3 \\ 0 \hspace{0.2cm} 2\hspace{0.2cm} 3 \\ 0 \hspace{0.2cm} 0\hspace{0.2cm} 3 \end{bmatrix}, Lower Triangular Matrix B=\begin{bmatrix} 1 \hspace{0.2cm} 0 \hspace{0.2cm} 0 \\ 1 \hspace{0.2cm} 2\hspace{0.2cm} 0 \\ 1 \hspace{0.2cm} 2\hspace{0.2cm} 3 \end{bmatrix}

Diagonal Matrix

A matrix where values outside the main diagonal have zero value; often represented as D. Note: A diagonal matrix does not have to be square.

D=[100020003],D=[10000200003000040000]D=\begin{bmatrix} 1 \hspace{0.2cm} 0 \hspace{0.2cm} 0 \\ 0 \hspace{0.2cm} 2\hspace{0.2cm} 0 \\ 0 \hspace{0.2cm} 0\hspace{0.2cm} 3 \end{bmatrix}, D=\begin{bmatrix} 1 \hspace{0.2cm} 0 \hspace{0.2cm} 0 \hspace{0.2cm} 0 \\ 0 \hspace{0.2cm} 2\hspace{0.2cm} 0 \hspace{0.2cm} 0 \\ 0 \hspace{0.2cm} 0\hspace{0.2cm} 3 \hspace{0.2cm} 0 \\ 0 \hspace{0.2cm} 0\hspace{0.2cm} 0 \hspace{0.2cm} 4 \\ 0 \hspace{0.2cm} 0\hspace{0.2cm} 0 \hspace{0.2cm} 0 \end{bmatrix}

Identity Matrix

A square matrix that does not change a vector when multiplied; often represented as 'I' or 'In'.

I=[100010001]I=\begin{bmatrix} 1 \hspace{0.2cm} 0 \hspace{0.2cm} 0 \\ 0 \hspace{0.2cm} 1\hspace{0.2cm} 0 \\ 0 \hspace{0.2cm} 0\hspace{0.2cm} 1 \end{bmatrix}

Orthogonal Matrix

Recap: Two vectors are orthogonal when their dot product equals zero, called orthonormal.

Orthogonal matrix is a square matrix whose columns and rows are orthonormal unit vectors; i.e perpendicular and also have a length/magnitude of 1. It is often denoted as 'Q'.

QT.Q=Q.QT=IwhereQT:TransposeofQQT=Q1whereQ1:InverseofQQ^T . Q = Q . Q^T = I \hspace{0.5cm}where\hspace{0.1cm}Q^T:Transpose \hspace{0.1cm}of\hspace{0.1cm} Q \newline Q^T = Q^{-1}\hspace{0.5cm}where\hspace{0.1cm}Q^{-1}:Inverse\hspace{0.1cm}of\hspace{0.1cm} Q

Link: - Introduction to Matrix Types in Linear Algebra for Machine Learning

Last updated

Was this helpful?