math4610

Routine Name: matrixSub

Author: David Merkley

Language: Python

Description/Purpose: Subtracts two matrices

Input: 2 matrices

Output: the subtraction

Implementation/Code:

def matrixSub(A, B):
    return [vectorSub(A[i], B[i]) for i in range(len(A))]