NLA-lib Explorer

Matrix.PosSemidef.sum_smul_eliminationStep

Library · theorem

The expected step of randomly pivoted Cholesky. For positive semidefinite \mathbf{A} with \operatorname{tr} \mathbf{A} \ne 0, choosing the pivot i with probability \mathbf{A}_{i,i} / \operatorname{tr} \mathbf{A} gives, on average, \mathbf{A} - \mathbf{A}^2 / \operatorname{tr} \mathbf{A}. [ChenEtAl2025, §5].

Matrix.PosSemidef.sum_smul_eliminationStep.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
  [Fintype n] {A : Matrix n n 𝕜} (hA : A.PosSemidef) (ht : RCLike.re A.trace ≠ 0) :
  ∑ i, (RCLike.re (A i i) / RCLike.re A.trace) • eliminationStep A i =
    A - (RCLike.re A.trace)⁻¹ • (A * A)

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Nystrom.