The SYMSQR function takes an matrix and packs the elements from the lower triangular portion into a column vector that contains rows. The matrix is not checked for symmetry, but usually matrix is a symmetric numeric matrix. Character matrices are also supported.
The following statement produces the output shown in Figure 24.405:
sym = symsqr({1 2, 3 4}); print sym;
Notice that the element is lost since it is only present in the upper triangular portion of the input matrix.
The SYMSQR function and the SQRSYM function are inverse operations on the set of symmetric matrices. See also the VECH function, which unpacks elements in column-major order.