NLA-lib Explorer

NLAlib.minresStep

Library · def

One Paige–Saunders step. With \alpha_k, \beta_k from the current Lanczos state and \beta_{k+1} from the next: rotate the new column (\beta_k, \alpha_k, \beta_{k+1}) by the two previous rotations, \varepsilon_k = s_{k-2}\beta_k, \delta'_k = \bar{c}_{k-2}\beta_k, \delta_k = c_{k-1}\delta'_k + s_{k-1}\alpha_k, \bar\gamma_k = -\bar{s}_{k-1}\delta'_k + \bar{c}_{k-1}\alpha_k; take (c_k, s_k) = gi\mathbf{v}ensCoeffs (\bar\gamma_k, \beta_{k+1}), \gamma_k = c_k\bar\gamma_k + s_k\beta_{k+1}; then \tau_k = c_k\bar\varphi_k, \bar\varphi_{k+1} = -\bar{s}_k\bar\varphi_k, \mathbf{d}_k = \gamma_k^{-1}(\mathbf{z}_k - \varepsilon_k\mathbf{d}_{k-2} - \delta_k\mathbf{d}_{k-1}) and \mathbf{x}_{k+1} = \mathbf{x}_k + \tau_k\mathbf{d}_k. The signs follow NLAlib.givens (\begin{\mathbf{b}matri\mathbf{x}} c & s \\ -\bar{s} & \bar{c} \end{\mathbf{b}matri\mathbf{x}}), not the paper's reflections. [PaigeSaunders1975, §6]; [Greenbaum1997, §2.5]; [ElmanSilvesterWathen2014, Algorithm 4.1]; the last two locators to verify. Paige and Saunders, over \mathbb{R} and without a preconditioner, form the iterate as \mathbf{x}_k = \mathbf{V}_k\mathbf{L}_k^{-\mathsf{T}} \mathbf{t}_k ((6.8)–(6.9)): the columns of \mathbf{V}_k\mathbf{L}_k^{-\mathsf{T}} are the directions \mathbf{d}_k here and the entries of \mathbf{t}_k the \tau_k.

NLAlib.minresStep.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  (A M : Matrix n n 𝕜) (s : MINRESState 𝕜 n) : MINRESState 𝕜 n

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.MINRESRecurrence.