sklearn.utils.extmath.fast_logdet — scikit-learn 0.20.4 documentation (original) (raw)

sklearn.utils.extmath. fast_logdet(A)[source]

Compute log(det(A)) for A symmetric

Equivalent to : np.log(nl.det(A)) but more robust. It returns -Inf if det(A) is non positive or is not defined.

Parameters: A : array_like The matrix