View source: R/MxAlgebraFunctions.R
vech | R Documentation |
This function returns the half-vectorization of an input matrix as a column vector.
vech(x)
x |
an input matrix. |
The half-vectorization of an input matrix consists of the elements in the lower triangle of the matrix, including the elements along the diagonal of the matrix, as a column vector. The column vector is created by traversing the matrix in column-major order.
vech2full
, vechs
, rvectorize
, cvectorize
vech(matrix(1:9, 3, 3))
vech(matrix(1:12, 3, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.