Description Usage Arguments Value Author(s) References Examples
Checks if eigenvalues in a square matrix are positive.
1 | is.positive.definite(X, tol = 1e-08, stop = FALSE)
|
X |
Numeric matrix. Symmetric matrix. |
tol |
Numeric. Tolerance. |
stop |
Logical.
If |
Returns TRUE
if the matrix is positive definite,
that is,
all eigenvalues are positive.
Returns FALSE
if the matrix is not positive definite,
that is,
any of the eigenvalues are are less than or equal to zero.
Ivan Jacob Agaloos Pesigan
Wikipedia: Definiteness of a Matrix
1 2 3 4 5 6 7 8 9 | Sigma <- matrix(
data = c(
225, 112.50, 56.25,
112.5, 225, 112.5,
56.25, 112.50, 225
),
ncol = 3
)
is.positive.definite(X = Sigma)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.