root.matrix: Root of a Matrix

Description Usage Arguments Value Examples

View source: R/matrix.R

Description

Computes the root of a symmetric and positive semidefinite matrix.

Usage

1

Arguments

X

a symmetric and positive semidefinite matrix

Value

a symmetric matrix of same dimensions as X

Examples

1
2
3
4
5
X <- matrix(c(1,2,2,8), ncol=2)
test <- root.matrix(X)
## control results
X
test %*% test

strucchangeRcpp documentation built on Nov. 26, 2021, 5:28 p.m.