def _unscale(x, C, b_scale):
    """
    Converts solution to _autoscale problem -> solution to original problem.
    """
    try:
        n = len(C)
    except TypeError as e:
        n = len(x)
    return x[:n] * b_scale * C
