math4610

Routine Name: PrintMatrix

Author: David Merkley

Language: Python

Description/Purpose: Prints a matrix in a more readable form

Input: Matrix A, and indentation

Output: The matrix in a better form

Implementation/Code:

def printMatrix(A, ind=0):
    n = len(A[0])
    for row in A:
        printVector(row, ind)