Language Reference |
SQRSYM Function |
where matrix is a symmetric numeric matrix.
The SQRSYM function takes a packed symmetric matrix (such as generated by the SYMSQR function) and transforms it back into a dense square matrix. The elements of the argument are unpacked into the lower triangle of the result and reflected across the diagonal into the upper triangle.
For example, consider the following two statements, which are equivalent:
m = {1 3, 3 4}; sqr = sqrsym(symsqr(m));
sqr=sqrsym({1, 3, 4});
Both statements produce the following result:
SQR 2 rows 2 cols (numeric) 1 3 3 4
Copyright © SAS Institute, Inc. All Rights Reserved.