Language Reference |
converts a symmetric matrix to a square matrix
where matrix is a symmetric numeric matrix.
The SQRSYM function takes a matrix such as those generated by the SYMSQR function and transforms it back into a 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:
sqr=sqrsym(symsqr({1 2, 3 4}));
sqr=sqrsym({ 1, 3, 4} );Both statements produce the following result:
SQR 2 rows 2 cols (numeric) 1 3 3 4
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.