NLA-lib Explorer

Full residual projection in conjugate gradients

Library · Source module

Full residual projection in conjugate gradients

The basis stores unnormalized residuals. A sweep subtracts each component along a stored column, dividing by its squared norm. For exact CG the residuals are already orthogonal, so the sweep leaves every later residual unchanged.

Main results

* NLAlib.Krylov.CG.Reorth.sweepVec_eq_self: a sweep fixes an orthogonal vector. * Matrix.PosDef.sweepVec_cgState_r: full reorthogonalization fixes exact CG residuals.

Declarations