isSymPosDef {MAnorm2} | R Documentation |
Is a Real Matrix Symmetric and Positive Definite?
Description
isSymPosDef
checks if a real matrix is symmetric and positive
definite.
Usage
isSymPosDef(x, ...)
Arguments
x |
A real matrix. |
... |
Further arguments to |
Value
TRUE
if x
is both symmetric and positive definite.
FALSE
otherwise.
See Also
isSymmetric
for testing if a matrix is
symmetric.
Examples
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)
[Package MAnorm2 version 1.2.2 Index]