NLA-lib Explorer

NLAlib.Krylov.CG.sum_abs_self_mul_eq_norm_sq

Library · theorem

The sum of absolute self-products has the same squared-norm value.

NLAlib.Krylov.CG.sum_abs_self_mul_eq_norm_sq (r : ℕ → ℝ) (n : ℕ) :
  ∑ i ∈ Finset.range n, |r i * r i| = ‖WithLp.toLp 2 fun i ↦ r ↑i‖ ^ 2

Full source on GitHub

Import NLAlib.Krylov.CG.ResidualCache.