NLA-lib Explorer

Preconditioned conjugate gradient on stored dense matrices

Library · Source module

Preconditioned conjugate gradient on stored dense matrices

NLAlib.Krylov.CG.HSPCG.Stored.zeroStartRoutine reads a system matrix and an inverse preconditioner, each stored as n * n words, and a right-hand side, and writes the iterate, the residual, the preconditioned residual and the direction: it fills the iterate with literal zeros and runs the fixed-horizon solver on the stored matrices. That solver is the matrix-free one on stored data (NLAlib.Ops.Routine.withData): the two matrices are isolated operands, in any buffers different from those of the other operands, each forwarded to its products.

Main definitions

* NLAlib.Krylov.CG.HSPCG.Stored.solveRoutine: the solver on stored matrices. * NLAlib.Krylov.CG.HSPCG.Stored.zeroStartRoutine, NLAlib.Krylov.CG.HSPCG.Stored.zeroStartSpec: the routine from the zero iterate and its specification.

Main results

* NLAlib.Krylov.CG.HSPCG.Stored.solveRoutine_meets: the stored solver meets the specification of the matrix-free solver at the matrices decoded from the stored words. * NLAlib.Krylov.CG.HSPCG.Stored.zeroStartRoutine_meets: the routine meets its specification.

Declarations