Description Usage Arguments Value Author(s) Examples
View source: R/checkSymmetricPDMatrix.R
Checks if a matrix is symmetric and positive definite using an eigen value decomposition.
1 | checkSymmetricPDMatrix(mat, tol = 1e-06)
|
mat |
(Required) The matrix to check |
tol |
(Optional) The tolorence to use when comparing the value to 0. The default is "1e-06" |
The function does not return anything. It only generate an error if something goes wrong.
Mike K Smith mstoolkit@googlemail.com
1 2 3 4 5 6 7 | ## Not run:
checkSymmetricPDMatrix( diag(4), 4)
\dontrun{
checkSymmetricPDMatrix( -diag(4),4 )
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.