Function

SparseGMRES()

Returns a generalized minimal residual method.

Declaration

func SparseGMRES() -> SparseIterativeMethod

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(SparseGMRESOptions) -> SparseIterativeMethod

Returns a generalized minimal residual method with specified options.

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.