Details and Options
- A matrix m is negative semidefinite if Re[Conjugate[x].m.x]≤0 for all vectors x.
- NegativeSemidefiniteMatrixQ works for symbolic as well as numerical matrices.
- For approximate matrices, the option Tolerance->t can be used to indicate that all eigenvalues λ satisfying λ≤t λmax are taken to be zero where λmax is an eigenvalue largest in magnitude.
- The option Tolerance has Automatic as its default value.
Examplesopen allclose all
Basic Examples (1)
An approximate MachinePrecision real matrix:
An approximate MachinePrecision complex matrix:
The test returns False unless it is true for all possible complex values of symbolic parameters:
Adjust the option Tolerance to accept matrices as negative semidefinite:
Properties & Relations (10)
Possible Issues (1)
The function returns False for symbolic matrices having non-numeric eigenvalues that cannot be determined as non-positive: