petsc-3.12.5 2020-03-29
Report Typos and Errors

KSPCGLS

Conjugate Gradient method for Least-Squares problems

Supports non-square (rectangular) matrices.

Notes

This does not use the preconditioner, so one should probably use KSPLSQR instead.

See Also

KSPCreate(), KSPSetType(), KSPType (for list of available types), KSP,
KSPCGSetType(), KSPCGUseSingleReduction(), KSPPIPECG, KSPGROPPCG

Level

beginner

Location

src/ksp/ksp/impls/cg/cgls.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages