NLA-lib Explorer

Matrix.IsHermitian.re_trace_cfc

Library ยท theorem

Headline of trace-of-matrix-function General form: sizes are index types

The trace of f(\mathbf{A}) is the sum of f over the eigenvalues: for Hermitian \mathbf{A}, \operatorname{Re} \operatorname{tr} f(\mathbf{A}) = \sum_{i < \lvert n \rvert} f(\lambda_i(\mathbf{A})). [Tropp2015, Definition 8.3.1]; there the sum defines the trace function, with the remark that it agrees with the trace of the standard matrix function. Result: trace-of-matrix-function

Matrix.IsHermitian.re_trace_cfc.{u_1, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_3} [Fintype n]
  [DecidableEq n] {A : Matrix n n ๐•œ} (hA : A.IsHermitian) (f : โ„ โ†’ โ„) :
  RCLike.re (cfc f A).trace = โˆ‘ i โˆˆ Finset.range (Fintype.card n), f (eigenvalue A i)

Full source on GitHub

Import NLAlib.Matrix.Functions.HermitianCalculus.

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k โ‰ฅ 1.