SparseConjugateGradient()
Returns a conjugate gradient (CG) method.
Declaration
func SparseConjugateGradient() -> SparseIterativeMethodReturn Value
A SparseIterativeMethod structure that represents a default conjugate gradient method.
Discussion
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(_:).