unvech {gogarch}R Documentation

Returns a symmetric matrix from a vector

Description

This function returns the symmetric matrix XX from a vector that resulted from v=vech(X)v = vech(X).

Usage

unvech(v)

Arguments

v

Vector, numeric.

Details

The vector v must have length equal to m(m+1)/2m * (m + 1) / 2, whereby mm is a dimension of the symmetric matrix Xm×mX_{m \times m}.

Value

X

Matrix, symmetric of order m×mm \times m.

Author(s)

Bernhard Pfaff

See Also

vec

Examples

v <- c(1, 2, 3, 4, 5, 6)
unvech(v)

[Package gogarch version 0.7-5 Index]