symmetrize: Symmetrize an upper triangular matrix

Description Usage Arguments Details Author(s) Examples

Description

Symmetrize an upper triangular matrix by copying the upper triangular elements into the lower triangular places

Usage

1

Arguments

a

Upper triangular matrix to be symmetrized

Details

Also works for lower triangular matrices

Author(s)

Robin K. S. Hankin

Examples

1
2
3
4
5
6
jj <- matrix(rnorm(50),10,5)
X <- crossprod(jj,jj)    # X has a Wishart distribution (and in
                         # particular is positive definite)

chol(X)
symmetrize(chol(X))

RobinHankin/calibrator documentation built on April 27, 2021, 2:47 p.m.