Fold a directed (n*n) vector into an undirected upper-triangle vector

lq_directed_to_upper_tri(v)

Arguments

v

Numeric vector of length n*n