isSymPosDef | R Documentation |
isSymPosDef
checks if a real matrix is symmetric and positive
definite.
isSymPosDef(x, ...)
x |
A real matrix. |
... |
Further arguments to |
TRUE
if x
is both symmetric and positive definite.
FALSE
otherwise.
isSymmetric
for testing if a matrix is
symmetric.
x <- matrix(c(1, 0.5, 0.5, 2), nrow = 2) isSymPosDef(x) # Not positive definite. x <- matrix(c(1, 0.5, 0.5, 0.2), nrow = 2) isSymPosDef(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.