Extension of a stored basis by column-wise two-pass classical Gram–Schmidt
Library · Source module
Extension of a stored basis by column-wise two-pass classical Gram–Schmidt
The first implementation of the operation NLAlib.Ops.OrthOp.extend. Each column of the block is reduced twice against the stored basis followed by the new columns already written, which form one contiguous stored block; the coefficients of the two passes are added into the coefficient block. The reduced column is dropped (a zero column and a zero diagonal coefficient are written) when its computed norm is at most the threshold \tau times the computed norm of the input column, and it is divided by its computed norm otherwise. The threshold is a rational literal of the implementation; at \tau = 0 the test is the exact zero guard. Design: docs/design/LowRank-BlockLanczos.md §3.5.
The program calls NLAlib.Krylov.Lanczos.Reorth.cgsPass, which is why this file is in the Krylov layer; its intended home is NLAlib/Matrix/Factorizations/CGS2/, next to the pure lemmas, once the classical pass is moved to the matrix layer.
Main definitions
* NLAlib.CGS2.cgs2Extend, NLAlib.CGS2.cgs2ExtendRoutine: the tree and the routine. * NLAlib.CGS2.cgs2ExtendColumnCount, NLAlib.CGS2.cgs2ExtendCount: the operations of one column and of the block. * NLAlib.CGS2.cgs2ExtendPeak: the workspace.
Main results
* NLAlib.CGS2.stmtCost_cgs2Extend: the static count of the program. * NLAlib.CGS2.stmtPeak_cgs2Extend_le: the static workspace of the program.