mat_root: Matrix Square-root

View source: R/utils.R

mat_rootR Documentation

Matrix Square-root

Description

For a symmetric matrix X calculates the matrix A such that X = A^2.

Usage

mat_root(X)

Arguments

X

a symmetric matrix

Value

a symmetric matrix A

Examples

X <- matrix(runif(9),3)
X <- X %*% t(X)
mat_root(X)

TMasak/surfcov documentation built on April 25, 2022, 12:15 a.m.