unvech: Reverse operator of the parsimonious vectorization operator...

View source: R/matcal.R

unvechR Documentation

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)

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.

Value

a symmetric matrix of size (dxd).

Warning

No argument checks!


saviviro/gmvarkit documentation built on March 8, 2024, 4:15 a.m.