matrix.sqrt: Square root of a matrix

View source: R/matrix.sqrt.R

matrix.sqrtR Documentation

Square root of a matrix

Description

Compute the square root of a matrix

Usage

matrix.sqrt(A)

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

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

skewMLRM documentation built on April 12, 2025, 1:23 a.m.