NLA-lib Explorer

NLAlib.cfc_diagonal

Library ยท theorem

f of a real diagonal matrix is the diagonal matrix of the values of f: f(\operatorname{diag}(\mathbf{d})) = \operatorname{diag}(f(\mathbf{d}_i)).

NLAlib.cfc_diagonal.{u_1, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_3} [Fintype n] [DecidableEq n]
  (f : โ„ โ†’ โ„) (d : n โ†’ โ„) : cfc f (diagonal fun i โ†ฆ โ†‘(d i)) = diagonal fun i โ†ฆ โ†‘(f (d i))

Full source on GitHub

Import NLAlib.Matrix.Functions.HermitianCalculus.