NLAlib.arnoldiMatrix_col_succ
Library · theorem
The canonical Arnoldi step, for every \mathbf{A} and j: with \mathbf{q}_j column j of the canonical basis \mathsf{arnoldiMatrix}(\mathbf{A}, \mathbf{b}, j + 2) and \mathbf{w} = (\mathbf{I} - \mathbf{P}_{\mathbf{K}_{j+1}})\mathbf{A}\mathbf{q}_j, column j + 1 is \mathbf{w}/\|\mathbf{w}\| (zero when \mathbf{w} = \mathbf{0}, which happens exactly from the grade on). [Saad2003, §6.3].
NLAlib.arnoldiMatrix_col_succ.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
[DecidableEq n] (A : Matrix n n 𝕜) (b : n → 𝕜) (j : ℕ) :
(arnoldiMatrix A b (j + 2)).col (Fin.last (j + 1)) =
(↑‖WithLp.toLp 2
((1 - rangeProjector (krylovMatrix A b (j + 1))) *ᵥ
A *ᵥ (arnoldiMatrix A b (j + 1)).col (Fin.last j))‖)⁻¹ •
(1 - rangeProjector (krylovMatrix A b (j + 1))) *ᵥ
A *ᵥ (arnoldiMatrix A b (j + 1)).col (Fin.last j)Import NLAlib.Krylov.Processes.Lanczos.