In-place modified Gram–Schmidt
Library · Source module
In-place modified Gram–Schmidt
NLAlib.MGS.factorRoutine (defined with its tree in NLAlib/Matrix/Factorizations/MGS/Alg.lean) is [n, k] (Y : update k * n): it replaces a packed n \times k matrix by its Gram–Schmidt factor in place. Inside it, each column is swept against its predecessors by the routine NLAlib.MGS.sweepRoutine and then normalized; the column loop and the normalization are fragments of this routine, with statements in operand form.
Main definitions
* NLAlib.MGS.factorSpec.
Main results
* NLAlib.MGS.factorRoutine_meets: the routine meets its specification.