Routine Name: l1matrix
Author: David Merkley
Language: Python
Description/Purpose: Gives the l1matrix norm
Input: a matrix
Output: the norm
Implementation/Code:
def l1matrix(A):
m = len(A)
n = len(A[0])
sums = [0]*n
for i in range(m):
for j in range(n):
sums[j] += abs(A[i][j])
return max(sums)