mysqrtm {PCFAM} | R Documentation |
Matrix square root function
Description
This function can find the matrix square root, without requiring a new package and often faster than other code.
Usage
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
[Package PCFAM version 1.0 Index]