are all triangular matrices invertible?
An upper triangular matrix is invertible if and only if it has no zeros on the main diagonal. ... The determinant of such a matrix is the product of the diagonal entries, and is non-zero if and only if the condition above holds.