NLA-lib Explorer

NLAlib.cgAlpha

Library · def

The step length of the Hestenes–Stiefel state s: \gamma = \|\mathbf{r}\|^2/\operatorname{Re}(\mathbf{p}^{\mathsf{H}}\mathbf{A}\mathbf{p}), the \alpha_k of NLAlib.cgStep (to be used there by name on integration).

NLAlib.cgAlpha.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] (A : Matrix n n 𝕜)
  (s : CGState 𝕜 n) : ℝ

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CGTridiagonal.