Sym
This function makes the symmetric matrix by using lower or part of the matrix.
note
Please use this function when the matrix is not too big, otherwise use GetSym.
- The following call will form symmetric matrix by using the upper triangle part of matrix
B
Sym from Upper part
A = Sym(mat=B, from="U")
- The following call will form symmetric matrix by using the lower triangle part of matrix
B
Sym from Lower part
A = Sym(mat=B, from="L")