NLA-lib Explorer

NLAlib.coe_rowNormSqDistribution

Library · theorem

The squared-row-norm weights as real numbers: p_i = \|\mathbf{a}_i\|^2/\|\mathbf{A}\|_{\mathsf{F}}^2, with \mathbf{a}_i the i-th row of \mathbf{A}.

NLAlib.coe_rowNormSqDistribution.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_3}
  {n : Type u_4} [Fintype m] [Fintype n] (A : Matrix m n 𝕜) (i : m) :
  ↑(rowNormSqDistribution A i) = ‖WithLp.toLp 2 (A i)‖ ^ 2 / frobNorm A ^ 2

Full source on GitHub

Import NLAlib.Matrix.Norms.Frobenius.