NLA-lib Explorer

NLAlib.preconditionedLanczosState

Library ยท def

The preconditioned Lanczos recurrence from \mathbf{b}: the state before step j, from \mathbf{v}_0 = \mathbf{b}/\beta_0, \mathbf{z}_0 = \mathbf{M}\mathbf{b}/\beta_0, \beta_0 = \sqrt{\operatorname{Re}\langle\mathbf{b}, \mathbf{M}\mathbf{b}\rangle}.

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

Full source on GitHub

Import NLAlib.Krylov.Processes.PreconditionedLanczos.