NLA-lib Explorer

Matrix.IsHermitian.cfc_newtonSchulz

Library · theorem

The Newton–Schulz map of a Hermitian matrix is the polynomial g(\mathbf{A}) = \tfrac12\mathbf{A}(3\mathbf{I} - \mathbf{A}^2).

Matrix.IsHermitian.cfc_newtonSchulz.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) :
  cfc newtonSchulz A = 2⁻¹ • (A * (3 • 1 - A * A))

Full source on GitHub

Import NLAlib.Matrix.Functions.Sign.