sparsax.umf_slogdet

sparsax.umf_slogdet(Ai, Aj, Ax, n)[source]

Sign and log-absolute-determinant of a sparse matrix via UMFPACK.

The UMFPACK counterpart of lu_slogdet(), with the same arguments and results. Not differentiable.

Returns:

(sign, logabsdet), each a float64 scalar; sign is 1.0 or -1.0.

Raises:

Exception – if A is singular or holds a non-finite value. set_options(on_failure="nan") returns NaN for both instead.