R: Calculates the Square Root of a Diagonalizable Matrix

matsqrt {mixtools} | R 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)

[Package mixtools version 1.2.0 Index]