Language Reference |
converts a square matrix to a symmetric matrix
where matrix is a square numeric matrix.
The SYMSQR function takes a square numeric matrix (size ) and compacts the elements from the lower triangle into a column vector ( rows). The matrix is not checked for actual symmetry.
The following statement produces the output shown:
sym=symsqr({1 2, 3 4});
SYM 3 rows 1 col (numeric) 1 3 4Note that the 2 is lost since it is only present in the upper triangle.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.