The SYMSQR function takes an numeric 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 matrix.
The following statement produces the output shown in Figure 23.350:
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.