matrix_sqrt: Matrix Square Root

Description Usage Arguments Value

View source: R/linalg.R

Description

Calculates the square root of a matrix by using its spectral decomposition.

Usage

1
matrix_sqrt(X, symmetric = FALSE)

Arguments

X

A matrix

symmetric

If TRUE, the matrix is assumed to be symmetric. Passed to eigen.

Value

A matrix of the same shape as X.


joshloyal/STAT542 documentation built on May 4, 2019, 1:08 p.m.