isdefinite
linear-algebra · scripts/linear-algebra/isdefinite.m
ISDEFINITE True if A is numerically Hermitian positive definite.
TF = ISDEFINITE(A) returns true when A is Hermitian within a default
relative tolerance and A - tol*eye(n) has a Cholesky factor.
TF = ISDEFINITE(A, TOL) uses the supplied non-negative TOL.
Octave-compatible public name. MATLAB has no public isdefinite;
portable code uses chol success / eig positivity checks. Unmarked
MATLAB-mode scripts that never call this name are unaffected.
See also ISHERMITIAN, CHOL, EIG.