NLA-lib Explorer

NLAlib.leverageScore_eq_norm_sq

Library · theorem

The leverage score of row i is \lVert \mathbf{P} \mathbf{e}_i \rVert^2 for the projector \mathbf{P} onto the column space. [MartinssonTropp2020, §9.6.1].

NLAlib.leverageScore_eq_norm_sq.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} [Fintype m] [Fintype n] (A : Matrix m n 𝕜) (i : m) :
  leverageScore A i = ‖WithLp.toLp 2 ((rangeProjector A).col i)‖ ^ 2

Full source on GitHub

Import NLAlib.Matrix.Subspaces.Leverage.