NLA-lib Explorer

NLAlib.lanczosStep

Library · def

One Lanczos step in Paige's order: \mathbf{w} = \mathbf{A}\mathbf{q}_j - \beta_j\mathbf{q}_{j-1} - \alpha_j\mathbf{q}_j, \beta_{j+1} = \|\mathbf{w}\|, \mathbf{q}_{j+1} = \beta_{j+1}^{-1}\mathbf{w}. At breakdown, \beta_\nu = 0 at the grade \nu, the state is (\mathbf{q}_{\nu-1}, \mathbf{0}, 0), and it is zero from the following step on. [Paige1972, §2]; [Saad2011, §6.6]. It is the variant A(2, 7) there, equations (2) to (5), (7) and (8), for real symmetric \mathbf{A}; [Saad2003, Algorithm 6.15] is the same order. Algorithm: lanczos

NLAlib.lanczosStep.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  (A : Matrix n n 𝕜) (s : LanczosState 𝕜 n) : LanczosState 𝕜 n

Full source on GitHub

Import NLAlib.Krylov.Processes.LanczosRecurrence.