vecd: Flatten a symmetric matrix into a vector preserving Frobenius norm.
Description
The vecd operator as used by schwartzman2008in;textualTFORGE flattens a symmetric matrix into a vector of unique elements such that the Frobenius norm of the matrix equals the Euclidean norm of the vector. This means that the off-diagonal elements are scaled by \(\sqrt{2}\).
In the returned vector the diagonal elements are first then the (scaled) off-diagonal elements; this ordering is different to vech().