math4610

Routine Name: RowEchelonFormAndBackSub

Author: David Merkley

Language: Python

Description/Purpose: Computes matrix solution reducing row echelon form then using back sub.

Input:

Required:

A - a matrix

Optional:

b - solution vector

mutation - whether to modify A

leaveUpperTriangularImplicit - True means zero out lower triangle

scalePartialPivoting - Whether or not to apply scale partial pivoting

Output: LU factorization of a matrix

Implementation/Code:

    def rowEchelonFormAndBackSub(A, b=[], mutation=False, leaveUpperTriangleImplicit=True, scalePartialPivoting=False):
        return backSub(rowEchelonForm(A, b, mutation, leaveUpperTriangleImplicit, scalePartialPivoting))