Contents

SparseCGOptions

Options for creating a conjugate gradient (CG) method.

Declaration

struct SparseCGOptions

Overview

Use CG to solve Ax = b when A is symmetric positive-definite. The method may break down or fail to converge if A isn’t positive-definite.

For square, full-rank, unsymmetric or indefinite equations, use SparseGMRES(_:). For rectangular or singular systems, use SparseLSMR(_:).

Topics

Initializers

Inspecting CG Options

See Also

Sparse Iterative Methods for Symmetric Positive-Definite Coefficient Matrices