mysqrtm: Matrix square root function

Description Usage Arguments Details Value

Description

This function can find the matrix square root, without requiring a new package and often faster than other code.

Usage

1
mysqrtm(a, symmetric = F)

Arguments

a

The input matrix

symmetric

Default=FALSE. This argument indicates whether the input matrix is symmetric.

Details

Matrix B is said to be a square root of A if the matrix product BB is equal to A.

Value

returns the square root matrix B


PCFAM documentation built on May 2, 2019, 2:37 a.m.