scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
det(a, overwrite_a=False, check_finite=True)

The determinant of a square matrix is a value derived arithmetically from the coefficients of the matrix.

The determinant for a 3x3 matrix, for example, is computed as follows:

a    b    c
d    e    f = A
g    h    i

det(A) = a*e*i + b*f*g + c*d*h - c*e*g - b*d*i - a*f*h

Notes

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

Parameters

a : (M, M) array_like

A square matrix.

overwrite_a : bool, optional

Allow overwriting data in a (may enhance performance).

check_finite : bool, optional

Whether to check that the input matrix contains only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs.

Returns

det : float or complex

Determinant of a.

Compute the determinant of a matrix

Examples

>>> from scipy import linalg
... a = np.array([[1,2,3], [4,5,6], [7,8,9]])
... linalg.det(a) 0.0
>>> a = np.array([[0,2,3], [4,5,6], [7,8,9]])
... linalg.det(a) 3.0
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.special._orthogonal.chebyu scipy.linalg._basic.det scipy.special._orthogonal.chebyt

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/linalg/_basic.py#977
type: <class 'function'>
Commit: