Matrix.IsHermitian.re_trace_exp
Library ยท theorem
The trace of the exponential of a Hermitian matrix is the sum of the exponentials of its eigenvalues: \operatorname{Re} \operatorname{tr} \exp(\mathbf{A}) = \sum_{i < \lvert n \rvert} e^{\lambda_i(\mathbf{A})}.
Matrix.IsHermitian.re_trace_exp.{u_1, u_3} {๐ : Type u_1} [RCLike ๐] {n : Type u_3} [Fintype n]
[DecidableEq n] {A : Matrix n n ๐} (hA : A.IsHermitian) :
RCLike.re (NormedSpace.exp A).trace = โ i โ Finset.range (Fintype.card n), rexp (eigenvalue A i)Import NLAlib.Matrix.Functions.Exponential.