| vech {fastmatrix} | R Documentation |
This function returns a vector obtained by stacking the lower triangular part of a square matrix.
vech(x)
x |
a square matrix. |
Let x be a n by n matrix, then vech(x) is a n(n+1)/2-dimensional
vector.
x <- matrix(rep(1:10, each = 10), ncol = 10) x y <- vech(x) y