def pack_pdf_params(mean, chol_sigma, logdet):
    '''


    '''
    k = len(mean)
    mean_len = k
    chol_len = k * (k + 1) / 2
    mch_len = mean_len + chol_len

    packed_dim = next_multiple(mch_len + 2, PAD_MULTIPLE)

    packed_params = np.empty(packed_dim, dtype=np.float32)
    packed_params[:mean_len] = mean

    packed_params[mean_len:mch_len] = chol_sigma[np.tril_indices(k)]
    packed_params[mch_len:mch_len + 2] = 1, logdet

    return packed_params
dataset/ETHPy150Open dukestats/gpustats/old/util.py/pack_pdf_params/original