Matrix.IsHermitian.trace_pow_eq_sum_range_eigenvalue_pow
Library ยท theorem
The trace of a power of a Hermitian matrix is the power sum of its eigenvalues: \operatorname{tr}(\mathbf{A}^p) = \sum_{k < \lvert n \rvert} \lambda_k(\mathbf{A})^p. For p = 0 both sides are the dimension.
Matrix.IsHermitian.trace_pow_eq_sum_range_eigenvalue_pow.{u_1, u_2} {๐ : Type u_1} [RCLike ๐]
{n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n ๐} (hA : A.IsHermitian) (p : โ) :
(A ^ p).trace = โ(โ k โ Finset.range (Fintype.card n), eigenvalue A k ^ p)Import NLAlib.Matrix.Spectral.EigenvalueTransform.