Learn R Programming

sstvars (version 1.1.6)

unvech: Reverse operator of the parsimonious vectorization operator vech

Description

unvech creates a symmetric matrix from the given vector by copying the lower triangular part to be the upper triangular part as well.

Usage

unvech(d, a)

Value

a symmetric matrix of size \((dxd)\).

Arguments

d

number of rows the square matrix to be formed.

a

a size \((d(d+1)/2x1)\) vector to be unvectorized into a symmetric \((dxd)\) matrix.