### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Linear algebra (`numpy.linalg`) »

# numpy.linalg.det

`numpy.linalg.``det`(a)

  Compute the determinant of an array.

  Parameters : | a : (M, M) array_like Input array.
  Returns : | det : float Determinant of a.

  See also

  `slogdet`
    Another way to representing the determinant, more suitable for large matrices where underflow/overflow may occur.

  Notes

  The determinant is computed via LU factorization using the LAPACK routine z/dgetrf.

  Examples

  The determinant of a 2-D array [[a, b], [c, d]] is ad - bc:

      >>> a = np.array([[1, 2], [3, 4]])
      >>> np.linalg.det(a)
      -2.0

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Linear algebra (`numpy.linalg`) »