# Routines for Matrix Inversion

This sections describes ScaLAPACK routines that compute the inverse of a matrix based on the previously obtained factorization. Note that it is not recommended to solve a system of equations `Ax = b` by first computing `A-1` and then forming the matrix-vector product `x = A-1b`. Call a solver routine instead (see Solving Systems of Linear Equations); this is more efficient and more accurate.

- p?getri
  Computes the inverse of a LU-factored distributed matrix.
- p?potri
  Computes the inverse of a symmetric/Hermitian positive definite distributed matrix.
- p?trtri
  Computes the inverse of a triangular distributed matrix.

Parent topic: Computational Routines