NLA-lib Explorer

NLAlib.Krylov.Lanczos.coeffValue_succ

Library ยท theorem

Advancing below the cap writes the next diagonal and next coupling cells only. [Paige1972, ยง2].

NLAlib.Krylov.Lanczos.coeffValue_succ.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2}
  [Fintype n] (A : Matrix n n ๐•œ) (b : n โ†’ ๐•œ) {cap done : โ„•} (hd : done < cap) (i : โ„•) :
  Krylov.Lanczos.coeffValue A b cap (done + 1) i =
    if i = done then lanczosAlpha A (lanczosState A b done)
    else
      if i = cap + done + 1 then (lanczosState A b (done + 1)).beta
      else Krylov.Lanczos.coeffValue A b cap done i

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Math.Prefix.