LTmat {linpk} | R Documentation |
Construct a symmetric matrix from its lower triangle.
Description
Construct a symmetric matrix from its lower triangle.
Usage
LTmat(LT, .names = attr(LT, ".names"), .colnames = .names, .rownames = .names)
Arguments
LT |
A numeric vector giving the elements of the lower triangle of the matrix by row (see examples). |
.names , .colnames , .rownames |
Optionally, specify row and column names of the resulting matrix. |
Value
A symmetric matrix.
Examples
LTmat(1:6)
[Package linpk version 1.1.2 Index]