def norm1(X):
    """
    Return norm 1 of a matrix, which is sum of the absolute value of all elements
    of that matrix.
    """
    if X.shape[0]*X.shape[1] == 0:
        return 0
    return abs(X).sum()