NLA-lib Explorer

Matrix.PosDef.log_re_det_eq_re_trace_cfc_log

Library 路 theorem

The log-determinant is the trace of the logarithm: \log \det \mathbf{A} = \operatorname{tr} \log(\mathbf{A}) for positive definite \mathbf{A}.

Matrix.PosDef.log_re_det_eq_re_trace_cfc_log.{u_1, u_2} {饾暅 : Type u_1} [RCLike 饾暅] {n : Type u_2}
  [Fintype n] [DecidableEq n] {A : Matrix n n 饾暅} (hA : A.PosDef) :
  Real.log (RCLike.re A.det) = RCLike.re (cfc Real.log A).trace

Full source on GitHub

Import NLAlib.Matrix.Functions.LogDet.