NLA-lib Explorer

NLAlib.frobNorm_sq_eq_sum_row

Library · theorem

The squared Frobenius norm is the sum of the squared Euclidean norms of the rows.

NLAlib.frobNorm_sq_eq_sum_row.{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 𝕜) :
  frobNorm A ^ 2 = ∑ i, ‖WithLp.toLp 2 (A.row i)‖ ^ 2

Full source on GitHub

Import NLAlib.Matrix.Norms.Frobenius.