### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Linear algebra (`scipy.linalg`) »

# scipy.linalg.inv

`scipy.linalg.``inv`(a, overwrite_a=0)

  Compute the inverse of a matrix.

  Parameters: | a : array-like, shape (M, M) Matrix to be inverted
  Returns: | ainv : array-like, shape (M, M) Inverse of the matrix a Raises LinAlgError if a is singular :

  Examples

      >>> a = array([[1., 2.], [3., 4.]])
      >>> inv(a)
      array([[-2. ,  1. ],
             [ 1.5, -0.5]])
      >>> dot(a, inv(a))
      array([[ 1.,  0.],
             [ 0.,  1.]])

### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Linear algebra (`scipy.linalg`) »