powered by
Checks if a matrix is positive definite and/or forces a matrix to be positive definite.
isPositiveDefinite(x) makePositiveDefinite(x)
a square numeric matrix.
Korbinian Strimmer.
The function isPositiveDefinite checks if a square matrix is positive definite.
isPositiveDefinite
The function makePositiveDefinite forces a matrix to be positive definite.
makePositiveDefinite
# the 3x3 Pascal Matrix is positive define isPositiveDefinite(pascal(3))
Run the code above in your browser using DataLab