Make a symmetric matrix by specifying a near-symmetric matrix M, or the lower triangular elements lowerTri with diagonal.
MakeSym(M, lowerTri, doubleDiag = FALSE)A symmetric matrix
A near-symmetric matrix
A vector containing the lower triangular elements of the matrix. This is an alternative way to specify the matrix.
Only meaningful for lowerTri is not missing. Whether the diagonal elements should be multiplied by sqrt(2) for doubling the squared norm of the lower triangle