NLA-lib Explorer

Full rank-revealing modified Gram–Schmidt

Library · Source module

Full rank-revealing modified Gram–Schmidt

The fixed tree sweeps every column against previously normalized columns. A zero residual stays zero, so normalization never requires a full-column-rank assumption. The vector primitives are Hermitian products, axpy and division by a scalar.

Main definitions

* NLAlib.MGS.sweep, NLAlib.MGS.sweepRoutine: reduce one vector against a column-major matrix prefix. The sweep is a routine because two routines run it: this factorization and the probe projection of Hutch++. * NLAlib.MGS.factor, NLAlib.MGS.factorRoutine: the full in-place rank-revealing factorization. * NLAlib.MGS.factorProgram: the factorization on the one matrix buffer of a problem.

The other trees (reduce, normalizeGuard, normalize, factorColumn, factorWithScratch) are fragments: pieces of the sweep or of the factorization, run only inside them.

Declarations