pub fn gmres(
a: &dyn LinearOperator,
b: &[f64],
x0: Option<&[f64]>,
m: Option<&dyn LinearOperator>,
restart: usize,
options: IterativeOptions,
) -> Result<IterativeResult>Expand description
Restarted GMRES(restart) for general square A (SciPy’s gmres, default restart 20): the
Arnoldi process builds an orthonormal Krylov basis, and Givens rotations keep the small least-
squares problem for the residual-minimising combination triangular, which gives the residual
norm at every step without forming x. Right preconditioning, A M y = b, x = M y.