sym_of_vech: Symmetric matrix A from vech(A)

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/linearAlgebra-sym_of_vech.R

Description

Symmetric matrix from its half-vectorization.

Usage

1

Arguments

x

Vector of length 0.5 * k(k + 1). Half-vectorization of a k by k matrix. \mathrm{vech} ≤ft( \mathbf{A}_{k \times k} \right).

Details

Generates an k \times k symmetric matrix from a \frac{1}{2}k(k + 1) vector.

Value

A matrix.

Author(s)

Ivan Jacob Agaloos Pesigan

References

Wikipedia: Vectorization

Magnus, J. R., & Neudecker, H. (2019). Matrix differential calculus with applications in statistics and econometrics. Wiley. https://doi.org/10.1002/9781119541219

See Also

Other Symmetric Functions: dcap(), mcap_cor(), mcap_diag(), mcap_sym(), pinv_of_dcap(), sym_of_vechs()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
A <- matrix(
  data = c(
    1.0, 0.5, 0.4,
    0.5, 1.0, 0.6,
    0.4, 0.6, 1.0
  ),
  ncol = 3
)
vechA <- c(1.0, 0.5, 0.4, 1.0, 0.6, 1.0)

sym_of_vech(vechA)

jeksterslab/linearAlgebra documentation built on Dec. 20, 2021, 10:10 p.m.