### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Sparse matrices (`scipy.sparse`) »
- scipy.sparse.linalg »

# scipy.sparse.linalg.inv

`scipy.sparse.linalg.``inv`(A)

  Compute the inverse of a sparse matrix

  New in version 0.12.0.

  Parameters : | A : (M,M) ndarray or sparse matrix square matrix to be inverted
  Returns : | Ainv : (M,M) ndarray or sparse matrix inverse of A

  Notes

  This computes the sparse inverse of A. If the inverse of A is expected to be non-sparse, it will likely be faster to convert A to dense and use scipy.linalg.inv.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Sparse matrices (`scipy.sparse`) »
- scipy.sparse.linalg »