matrixsqrt: Matrix squared root

View source: R/matixsqrt.R

matrixsqrtR Documentation

Matrix squared root

Description

Matrix square root of a matrix using the eigendecomposition.

Usage

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

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

MultBiplotR documentation built on Nov. 21, 2023, 5:08 p.m.