# Computing the Inverse of a Triangular Matrix (tri)

tri computes the inverse of a real upper or lower triangular matrix $$A$$.

## Real Variant

 A (input/output) real valued TrMatrix On entry, the triangular $$n \times n$$ matrix $$A$$. On exit, if the return value equals $$0$$, the inverse of matrix $$A$$.

## Complex Variant

Defined in namespace flens::lapack. Function tri with 1 template parameters.

 A (input/output) complex valued TrMatrix On entry, the triangular $$n \times n$$ matrix $$A$$. On exit, if the return value equals $$0$$, the inverse of matrix $$A$$.