def vec2skew(v):
    """
    Takes in a vector and returns its skew-symmetric matrix.
    :param v: vector needed to be skewed
    :return matrix: returns skewed matrix
    """
    return [[0, -v[2], v[1]],
            [v[2], 0, -v[0]],
            [-v[2], v[0], 0]]