Positive definite matrices
matrix-posDefinite.Rd
Checks if a matrix is positive definite and/or forces a matrix to be positive definite.
Details
The function isPositiveDefinite
checks if a square matrix is
positive definite.
The function makePositiveDefinite
forces a matrix to be
positive definite.
Examples
# the 3x3 Pascal Matrix is positive define
isPositiveDefinite(pascal(3))
#> [1] TRUE