math4610

Routine Name: matrixAdd

Author: David Merkley

Language: Python

Description/Purpose: Adds two matrices

Input: 2 matrices

Output: the sum

Implementation/Code:

def matrixAdd(A, B):
    return [vectorAdd(A[i], B[i]) for i in range(len(A))]