jax.scipy.linalg.det#
- jax.scipy.linalg.det(a, overwrite_a=False, check_finite=True)[source]#
Compute the determinant of a matrix
JAX implementation of
scipy.linalg.det().- Parameters:
- Return type:
- Returns
Determinant of shape
a.shape[:-2]
See also
jax.numpy.linalg.det(): NumPy-style determinant APIExamples
Determinant of a small 2D array:
>>> x = jnp.array([[1., 2.], ... [2., 3.]]) >>> jax.scipy.linalg.det(x) Array(-1., dtype=float32)
Batch-wise determinant of multiple 2D arrays:
>>> x = jnp.array([[[1., 2.], ... [2., 3.]], ... [[8., 4.], ... [2., 5.]]]) >>> jax.scipy.linalg.det(x) Array([-1., 32.], dtype=float32)