Upper triangular matrices are matrices in which all entries below the main diagonal are .

Lower triangular matrices are matrices in which all entries above the main diagonal are .