NLA-lib Explorer

NLAlib.lanczosTridiagonal

Library ยท def

The tridiagonal matrix computed by the Lanczos recurrence: \alpha_0, \dots, \alpha_{q-1} on the diagonal, \beta_1, \dots, \beta_{q-1} beside it. Algorithm: lanczos

NLAlib.lanczosTridiagonal.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} [Fintype n]
  (A : Matrix n n ๐•œ) (b : n โ†’ ๐•œ) (q : โ„•) : Matrix (Fin q) (Fin q) ๐•œ

Full source on GitHub

Import NLAlib.Krylov.Processes.LanczosRecurrence.