This function is meant to be the inverse of sym_matrix_to_vec. If you have
discarded the diagonal in sym_matrix_to_vec, you need to provide it
separately to reconstruct the symmetric matrix. For instance this can be
useful for correlation matrices for which we know the diagonal is 1.