def _vec2dict_of_vec(vec, list_nb_coeff):
    """Cut a vector of all coefficients into vectors for each order."""

    dict_of_vec = dict()
    start = 0
    for ind_n, nb_coeff in enumerate(list_nb_coeff):
        dict_of_vec[ind_n+1] = vec[start:start+nb_coeff]
        start += nb_coeff

    return dict_of_vec