NLA-lib Explorer

NLAlib.krylovMatrix_diagonal

Library ยท theorem

The Krylov matrix of a diagonal matrix: for \mathbf{d}, \mathbf{g} \in \Bbbk^t, \mathbf{K}_t(\operatorname{diag}(\mathbf{d}), \mathbf{g}) = \operatorname{diag}(\mathbf{g})\,\mathbf{V}\,,\qquad \mathbf{V}_{ij} = d_i^{\,j}\,, with \mathbf{V} the Vandermonde matrix of \mathbf{d}.

NLAlib.krylovMatrix_diagonal.{u_1} {๐•œ : Type u_1} [RCLike ๐•œ] {t : โ„•} (d g : Fin t โ†’ ๐•œ) :
  krylovMatrix (diagonal d) g t = diagonal g * vandermonde d

Full source on GitHub

Import NLAlib.Krylov.Basic.KrylovVandermonde.