A real matrix is called an orthogonal matrix if its transpose is the same as its inverse, i.e. if or .
A complex matrix is called a unitary matrix if its complex conjugate transpose is the same as its inverse, i.e. if or . It should be noted that a real unitary matrix is an orthogonal matrix.