def vec_abs(a):
    """
    Computes the element-wise absolute value of a vector

    Parameters
    ----------
    a: list[]
        A vector of scalar values

    Returns
    -------
    list[]
        The absolute vector of a

    """
    # return [abs(a[n]) for n in range(len(a))]
    return [*map(lambda ai: abs(ai), a)]