NLA-lib Explorer

Total forward substitution with a singularity flag

Library · Source module

Total forward substitution with a singularity flag

Each column checks its actual pivot. The loop retains either a witnessed zero diagonal and a set flag, or the exact solved prefix with all processed pivots nonzero. Thus singular triangular matrices have a defined outcome and never reach a zero-denominator division.

Main results

* NLAlib.ShiftedQR.substitutionLoop: checked increasing-column substitution. * NLAlib.ShiftedQR.SubstitutionState: the mathematical and stored loop invariant.

Declarations