Forward and back substitution as routines
Library · Source module
Forward and back substitution as routines
NLAlib.TriangularSolve.forward solves with a lower triangular matrix stored by columns and NLAlib.TriangularSolve.backward with its transpose, both in place, over scalar operations. The running value of a row is kept in the cell of its solution entry, so one scratch cell (the product) suffices. Both are generic over the signature, so each can be run at a precision tag.
Main definitions
* NLAlib.TriangularSolve.forward, NLAlib.TriangularSolve.forwardSpec: forward substitution. * NLAlib.TriangularSolve.backward, NLAlib.TriangularSolve.backwardSpec: back substitution with the transpose.
Main results
* NLAlib.TriangularSolve.forward_meets: the block written is a substitution trace. * NLAlib.TriangularSolve.backward_meets: the block written is a back substitution trace.