fips.linalg.SparseOperator.logdet#

SparseOperator.logdet()[source]#

Return the log-determinant from a symmetric sparse LU factorization.

The rows and columns are permuted alike and pivots are taken on the diagonal, so the factorization is P A P^T = L D L^T with U = D L^T: the matrix is positive-definite when every pivot is positive.

Raises:

numpy.linalg.LinAlgError – If a pivot is zero or negative: the matrix is not positive-definite.

Return type:

float