matsqrt: Calculates the Square Root of a Diagonalizable Matrix

View source: R/matsqrt.R

matsqrtR Documentation

Calculates the Square Root of a Diagonalizable Matrix

Description

Returns the square root of a diagonalizable matrix.

Usage

matsqrt(x)

Arguments

x

An nxn diagonalizable matrix.

Details

This function is called by regcr.

Value

matsqrt returns the square root of x.

See Also

regcr

Examples

a <- matrix(c(1, -0.2, -0.2, 1), 2, 2)
matsqrt(a)


mixtools documentation built on Dec. 5, 2022, 5:23 p.m.