NLA-lib Explorer

Block Golub–Kahan bidiagonalization with full reorthogonalization as one fixed program

Library · Source module

Block Golub–Kahan bidiagonalization with full reorthogonalization as one fixed program

The driver is written against three groups of operations and does no arithmetic of its own: the extension of a stored basis by a block (NLAlib.Ops.OrthOp.extend), the products with a matrix \mathbf{A} and with \mathbf{A}^{\mathsf{H}} (NLAlib.Ops.OperatorPairOp), and scalar draws from a tape stream. With N = q\mathbf{b}:

draw Ω (n × b);  V block 0, G := extend(∅, Ω)
for j < q:  U block j,   block column j of R := extend(U blocks < j, A · (V block j))
            V block j+1, block column j of S := extend(V blocks ≤ j, Aᴴ · (U block j))

Full reorthogonalization is the fact that every extension is against all stored columns of its side. A concrete orthogonalization scheme is an implementation of extend proved against the contract (NLAlib.Ops.extendRel, NLAlib.Ops.exactExtendRel) and substituted by linking. The stored-run predicates of this file are related to the pure relations NLAlib.IsBlockGolubKahan and NLAlib.IsBlockGolubKahanErr in NLAlib/Krylov/GolubKahan/Band/Run.lean. Design: docs/design/LowRank-BlockLanczos.md §3.

Storage. All blocks are column-major, one word per entry. U has q * b * m words and V has (q + 1) * b * n; a new block is written by extend directly after the stored columns of its side. G holds the b * b coefficients of the start block. R and S are packed by block column: block column j of R is the (j * b + b) × b coefficient block of the extension of the j * b stored columns of U, at the offset b * b * (j * (j + 1) / 2), and block column j of S is the ((j + 1) * b + b) × b block of the extension of the (j + 1) * b stored columns of V, at the offset b * b * (j * (j + 3) / 2). The scratch block of max m n * b words holds the drawn block and then the products; it is released at the end.

Main definitions

* NLAlib.Krylov.GolubKahan.Band.applyColumns, NLAlib.Krylov.GolubKahan.Band.step, NLAlib.Krylov.GolubKahan.Band.solve, NLAlib.Krylov.GolubKahan.Band.solveRoutine, NLAlib.Krylov.GolubKahan.Band.solveProgram: the program. * NLAlib.Krylov.GolubKahan.Band.coefOffsetR, NLAlib.Krylov.GolubKahan.Band.coefOffsetS, NLAlib.Krylov.GolubKahan.Band.outLens: the packed layout. * NLAlib.Krylov.GolubKahan.Band.IsStoredRun, NLAlib.Krylov.GolubKahan.Band.IsExactStoredRun, NLAlib.Krylov.GolubKahan.Band.IsRoundedStoredRun, NLAlib.Krylov.GolubKahan.Band.StoredOut: the relation between the stored blocks of a run, block by block. * NLAlib.Krylov.GolubKahan.Band.AppliesColumns, NLAlib.Krylov.GolubKahan.Band.stepFp, NLAlib.Krylov.GolubKahan.Band.StoredPrefix: the form in which the driver uses a product, the cells of a block step, and the loop invariant.

Main results

* NLAlib.Krylov.GolubKahan.Band.extendPred_of_eq_zero: an extension of the empty basis does not depend on the name of the empty column type. * NLAlib.Krylov.GolubKahan.Band.coefOffsetR_succ, NLAlib.Krylov.GolubKahan.Band.coefOffsetS_succ: consecutive block columns are adjacent. * NLAlib.Krylov.GolubKahan.Band.applyColumns_writes_of, NLAlib.Krylov.GolubKahan.Band.applyColumns_writes, NLAlib.Krylov.GolubKahan.Band.applyColumns_writes_error: a block of products. * NLAlib.Krylov.GolubKahan.Band.step_writes_of, NLAlib.Krylov.GolubKahan.Band.steps_writes, NLAlib.Krylov.GolubKahan.Band.StoredPrefix.succ, NLAlib.Krylov.GolubKahan.Band.StoredPrefix.exists_storedOut: the rounds of the driver, from which NLAlib.Krylov.GolubKahan.Band.solveRoutine_meets_of is proved.

Declarations