UT2mat {fMRItools} | R Documentation |
Returns the symmatric square matrix from a vector containing the upper triangular elements
UT2mat(x, diag = 0, LT = 0)
x |
A vector containing the upper triangular elements of a square, symmetric matrix. |
diag |
A scalar value to use for the diagonal values of the matrix, or
|
LT |
A scalar value to use for the lower triangular values of the
matrix. Default: |
A symmetric matrix with the values of x
in the upper and
lower triangles and the value diag
on the diagonal.