Function

SparseGMRES(_:)

Returns a generalized minimal residual method with specified options.

Declaration

func SparseGMRES(_ options: SparseGMRESOptions) -> SparseIterativeMethod

Parameters

options

The options to use when creating the GMRES method, for example the maximum number of iterations to perform.

Return Value

A SparseIterativeMethod structure representing 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(_:) instead. For rectangular or singular systems, use SparseLSMR(_:).

See Also

Sparse Iterative Methods

func SparseConjugateGradient(SparseCGOptions) -> SparseIterativeMethod

Returns a conjugate gradient method with specified options.

struct SparseCGOptions

Options for creating a conjugate gradient method.

func SparseGMRES() -> SparseIterativeMethod

Returns a generalized minimal residual method.

struct SparseGMRESOptions

Options for creating a generalized minimal residual method.

func SparseLSMR() -> SparseIterativeMethod

Returns a default least squares minimum residual method.

func SparseLSMR(SparseLSMROptions) -> SparseIterativeMethod

Returns a least squares minimum residual method with specified options.

struct SparseLSMROptions

Options for creating a least squares minimum residual method.