NLA-lib Explorer

NLAlib.kaczmarzIterate_succ

Library · theorem

The row-action formula of the Kaczmarz iterate: with \mathbf{a}_i the rows of \mathbf{A} and \mathbf{x}_q = \mathsf{kaczmarzIterate}(\mathbf{A}, \iota, \mathbf{b}, \mathbf{x}_0, q), \mathbf{x}_{q+1} = \mathbf{x}_q + \frac{\mathbf{b}_{\iota_q} - (\mathbf{A}\mathbf{x}_q)_{\iota_q}} {\|\mathbf{a}_{\iota_q}\|^2}\,\overline{\mathbf{a}_{\iota_q}}\,, and \mathbf{x}_{q+1} = \mathbf{x}_q when \mathbf{a}_{\iota_q} = \mathbf{0} (division by zero is zero). [StrohmerVershynin2009, Algorithm 1]; [MaNeedellRamdas2015, (2.1)].

NLAlib.kaczmarzIterate_succ.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2} {n : Type u_3}
  [Fintype m] [Fintype n] [DecidableEq m] (A : Matrix m n 𝕜) (ι : ℕ → m) (b : m → 𝕜) (x₀ : n → 𝕜)
  (q : ℕ) :
  kaczmarzIterate A ι b x₀ (q + 1) =
    kaczmarzIterate A ι b x₀ q +
      ((b (ι q) - (A *ᵥ kaczmarzIterate A ι b x₀ q) (ι q)) / ↑(‖WithLp.toLp 2 (A (ι q))‖ ^ 2)) •
        star (A (ι q))

Full source on GitHub

Import NLAlib.Regression.Kaczmarz.