NLA-lib Explorer

Conjugate gradient from the zero iterate

Library · Source module

Conjugate gradient from the zero iterate

The routine NLAlib.Krylov.CG.HSCG.zeroStartRoutine reads the right-hand side and writes the iterate, the residual and the direction: it fills the iterate with literal zeros and runs the fixed-horizon solver NLAlib.Krylov.CG.HSCG.solve on it. Its specification mentions only the dimensions, the right-hand side read and the three vectors written.

Main definitions

* NLAlib.Krylov.CG.HSCG.zeroStart: the tree. * NLAlib.Krylov.CG.HSCG.zeroStartRoutine, NLAlib.Krylov.CG.HSCG.zeroStartSpec: the routine and its specification.

Main results

* NLAlib.Krylov.CG.HSCG.zeroStartRoutine_meets: the routine meets its specification.

Declarations