def is_vector(exp):
    """ Returns whether the expression is a vector.

    Inputs:
        exp (dy.Expression): The expression to check.

    Returns:
        bool, representing whether the expression is a vector.

    """
    return len(exp.dim()[0]) == 1