math4610

Routine Name: l1

Author: David Merkley

Language: Python

Description/Purpose: Gives the l1 norm

Input: a vector

Output: the norm

Implementation/Code:

def l1(x):
    return sum([abs(xi) for xi in x])