Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sqrt_matrix

Find the square root of a matrix


Description

Same thing as 'expm::sqrtm', but faster.

Usage

sqrt_matrix(mat, symmetric)

Arguments

mat

Matrix to find square root matrix of

symmetric

Is it symmetric? Passed to eigen.

Value

Square root of mat

Examples

mat <- matrix(c(1,.1,.1,1), 2, 2)
smat <- sqrt_matrix(mat=mat, symmetric=TRUE)
smat %*% smat

GauPro

Gaussian Process Fitting

v0.2.4
GPL-3
Authors
Collin Erickson
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.