NLA-lib Explorer

Hestenes–Stiefel conjugate-gradient programs over operations

Library · Source module

Hestenes–Stiefel conjugate-gradient programs over operations

A round updates the iterate, residual and search direction in three distinct buffers. Its operations have the shared scalar, BLAS1 and matrix-vector contracts. The tree is independent of their implementations and arithmetic precision. Scalar division is used only under the nonbreakdown hypotheses in the exact certificate.

The direction update copies the residual to scratch, performs an axpy and copies the result back. These copies are counted explicitly. The current BLAS1 axpy contract requires its output to be the last input and the scaled input to use a different buffer.

Main results

* NLAlib.Krylov.CG.HSCG.step is one round, as a uniform first-order tree. * NLAlib.Krylov.CG.HSCG.staticCost_step gives its operation counts. * NLAlib.Krylov.CG.HSCG.staticPeak_step_le bounds its scratch storage. * NLAlib.Krylov.CG.HSCG.solve initializes the state and executes a fixed horizon of rounds.

Declarations