NLA-lib Explorer

NLAlib.Cholesky.cholColumn_succ

Library · theorem

Standard rounding

After the diagonal and the entries below it are written, the columns up to j are columns of a trace, on the final words Wf.

NLAlib.Cholesky.cholColumn_succ {K : Type} {M : Ops.Machine K} {u : ℝ} {dec : K → ℝ}
  (hM : Ops.StdModel u dec M) {a : ℕ → ℕ → ℝ} {n j : ℕ} {W Wf : ℕ → K} (hj : j < n)
  (hpre : ∀ c < j, Cholesky.CholColumn u a (Cholesky.entryOf dec n W) n c)
  (hv : dec (W (j * n + j)) = a j j)
  (hkeep :
    ∀ (c r : ℕ),
      r < n →
        c ≠ j ∨ r ≤ j →
          Wf (c * n + r) =
            Function.update W (j * n + j)
              (M.sqrt
                (TriangularSolve.mulSubWord M (fun k ↦ W (k * n + j)) (fun k ↦ W (k * n + j))
                  (W (j * n + j)) j))
              (c * n + r))
  (hbelow : Cholesky.BelowPrefix u dec a n j (n - (j + 1)) Wf) (c : ℕ) :
  c < j + 1 → Cholesky.CholColumn u a (Cholesky.entryOf dec n Wf) n c

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Cholesky.Routine.