Back to LAPACK/BLAS
la.norms.logdet
Compute the natural logarithm of the absolute value of the determinant.
Syntax
la.norms.logdet(A, options?)
Description
Compute the natural logarithm of the absolute value of the determinant. This is numerically more stable than computing det() for large matrices or matrices with very large/small determinants. log|det(A)| = sum of log|diagonal elements of U from LU factorization|
Parameters
| Name | Description |
|---|---|
| A | - Input square matrix (n × n) |
| options(optional) | - Computation options |
Returns
LogDetResult