scikit_learn / 0.24.1 / modules / generated / sklearn.utils.extmath.fast_logdet.html /

sklearn.utils.extmath.fast_logdet

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
Aarray-like

The matrix.

© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.extmath.fast_logdet.html