SparseGMRES(_:)
Returns a generalized minimal residual (GMRES) method with specified options.
Declaration
func SparseGMRES(_ options: SparseGMRESOptions) -> SparseIterativeMethodParameters
- options:
The options to use when creating the GMRES method, such as the maximum number of iterations to perform.
Return Value
A SparseIterativeMethod structure that represents a generalized minimal residual (GMRES) method.
Discussion
Use GMRES to solve Ax = b when A is symmetric indefinite or unsymmetric.
For symmetric positive-definite systems, use SparseConjugateGradient(_:). For rectangular or singular systems, use SparseLSMR(_:).