Learn R Programming

mixtools (version 2.0.0)

matsqrt: Calculates the Square Root of a Diagonalizable Matrix

Description

Returns the square root of a diagonalizable matrix.

Usage

matsqrt(x)

Value

matsqrt returns the square root of x.

Arguments

x

An nxn diagonalizable matrix.

Details

This function is called by regcr.

See Also

regcr

Examples

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

Run the code above in your browser using DataLab