NLA-lib Explorer

NLAlib.mgsSweep

Library · def

The modified Gram–Schmidt sweep: \mathbf{u}_0 = \mathbf{w} and \mathbf{u}_{i+1} = \mathbf{u}_i - (\mathbf{v}_i^{\mathsf{H}}\mathbf{u}_i)\mathbf{v}_i; the value at k is \mathbf{w} reduced against \mathbf{v}_0, \dots, \mathbf{v}_{k-1}, one vector at a time, each coefficient computed from the partially reduced vector. The vectors are not assumed normalised. It is the inner loop of the Arnoldi process. [GolubVanLoan2013, §5.2.8].

NLAlib.mgsSweep.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_4} [Fintype m] (V : ℕ → m → 𝕜)
  (w : m → 𝕜) : ℕ → m → 𝕜

Full source on GitHub

Import NLAlib.Matrix.Factorizations.GramSchmidt.