NLA-lib Explorer

NLAlib.preconditionedLanczosStep

Library 路 def

One preconditioned Lanczos step, one application of \mathbf{M}: \mathbf{w} = \mathbf{A}\mathbf{z}_j - \beta_j\mathbf{v}_{j-1} - \alpha_j\mathbf{v}_j, \mathbf{u} = \mathbf{M}\mathbf{w}, \beta_{j+1} = \sqrt{\operatorname{Re}\langle\mathbf{w}, \mathbf{u}\rangle}, \mathbf{v}_{j+1} = \mathbf{w}/\beta_{j+1}, \mathbf{z}_{j+1} = \mathbf{u}/\beta_{j+1}. At breakdown everything after is zero. [ElmanSilvesterWathen2014, Algorithm 4.1]; locator to verify.

NLAlib.preconditionedLanczosStep.{u_1, u_2} {饾暅 : Type u_1} [RCLike 饾暅] {n : Type u_2} [Fintype n]
  (A M : Matrix n n 饾暅) (s : PreconditionedLanczosState 饾暅 n) : PreconditionedLanczosState 饾暅 n

Full source on GitHub

Import NLAlib.Krylov.Processes.PreconditionedLanczos.