- jax.numpy.linalg.slogdet(a, *, method=None)#
Compute the sign and (natural) logarithm of the determinant of an array.
LAX-backend implementation of
Original docstring below.
If an array has a very small or very large determinant, then a call to det may overflow or underflow. This routine is more robust against such issues, because it computes the logarithm of the determinant rather than the determinant itself.
- Return type:
A namedtuple with the following attributes
sign ((…) array_like) – A number representing the sign of the determinant. For a real matrix, this is 1, 0, or -1. For a complex matrix, this is a complex number with absolute value 1 (i.e., it is on the unit circle), or else 0.
logabsdet ((…) array_like) – The natural log of the absolute value of the determinant.
If the determinant is zero, then sign will be 0 and logabsdet will be
-Inf. In all cases, the determinant is equal to
sign * np.exp(logabsdet).