matrixsqrt: Matrix squared root

Description Usage Arguments Details Value Author(s) Examples

View source: R/matixsqrt.R

Description

Matrix square root of a matrix using the eigendecomposition.

Usage

1
matrixsqrt(S, tol = sqrt(.Machine$double.eps))

Arguments

S

A squered matrix

tol

Tolerance for the igenvalues

Details

Matrix square root of a matrix using the eigendecomposition and removing the eigenvalues smaller than a tolerance

Value

The matrix square root of the argument

Author(s)

Jose Luis Vicente Villardon

Examples

1
2
3
4
data(iris)
x=as.matrix(iris[,1:4])
S= t(x) 
matrixsqrt(S)

villardon/MultBiplotR documentation built on June 5, 2021, 8:55 a.m.