NLAlib.relativeEntropy
Library · def
The matrix relative entropy of two positive definite matrices, D(\mathbf{A}; \mathbf{H}) = \operatorname{Re} \operatorname{tr}\bigl(\mathbf{A}(\log(\mathbf{A}) - \log(\mathbf{H})) - (\mathbf{A} - \mathbf{H})\bigr) , the Bregman divergence of \mathbf{A} \mapsto \operatorname{tr}(\mathbf{A}\log(\mathbf{A}) - \mathbf{A}). The definition takes any two square matrices; it is meant for positive definite ones. [Tropp2015, Definition 8.1.2].
NLAlib.relativeEntropy.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
[DecidableEq n] (A H : Matrix n n 𝕜) : ℝImport NLAlib.Matrix.Functions.Lieb.