matrix.sqrt: Square root of a matrix

Description Usage Arguments Value Note Author(s) Examples

View source: R/matrix.sqrt.R

Description

Compute the square root of a matrix

Usage

1

Arguments

A

a symmetric semi-definite positive matrix

Value

A symmetric matrix, say B, such as B^t*B=A

Note

For internal use.

Author(s)

Clecio Ferreira, Diego Gallardo and Camila Zeller.

Examples

1
2
3
4
5
A<-matrix(c(1,2,2,5),nrow=2)
B<-matrix.sqrt(A)
##Recovering A
t(B)%*%B
A

skewMLRM documentation built on Nov. 24, 2021, 9:07 a.m.