math4610

Routine Name: l22

Author: David Merkley

Language: Python

Description/Purpose: Gives the l22 norm

Input: a vector

Output: the norm

Implementation/Code:

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