jax.scipy.linalg.det

Contents

jax.scipy.linalg.det#

jax.scipy.linalg.det(a, overwrite_a=False, check_finite=True)[source]#

Compute the determinant of a matrix

LAX-backend implementation of scipy.linalg._basic.det().

Does not support the Scipy argument check_finite=True, because compiled JAX code cannot perform checks of array values at runtime.

Does not support the Scipy argument overwrite_*=True.

Original docstring below.

The determinant is a scalar that is a function of the associated square matrix coefficients. The determinant value is zero for singular matrices.

Parameters:
  • a ((..., M, M) array_like) – Input array to compute determinants for.

  • overwrite_a (bool) –

  • check_finite (bool) –

Returns:

det – Determinant of a. For stacked arrays, a scalar is returned for each (m, m) slice in the last two dimensions of the input. For example, an input of shape (p, q, m, m) will produce a result of shape (p, q). If all dimensions are 1 a scalar is returned regardless of ndim.

Return type:

(…) float or complex