NLA-lib Explorer

NLAlib.lanczosFA_sub

Library ยท theorem

Lanczos-FA is linear in the function, for every \mathbf{A}: \mathsf{lanczosFA}(\mathbf{A}, f - g, \mathbf{b}, q) = \mathsf{lanczosFA}(\mathbf{A}, f, \mathbf{b}, q) - \mathsf{lanczosFA}(\mathbf{A}, g, \mathbf{b}, q). No continuity is needed: matrix spectra are finite.

NLAlib.lanczosFA_sub.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} [Fintype n] [DecidableEq n]
  (A : Matrix n n ๐•œ) (f g : โ„ โ†’ โ„) (b : n โ†’ ๐•œ) (q : โ„•) :
  lanczosFA A (fun x โ†ฆ f x - g x) b q = lanczosFA A f b q - lanczosFA A g b q

Full source on GitHub

Import NLAlib.Krylov.Functions.LanczosFA.