skrf.mathFunctions.is_positive_semidefinite¶
- skrf.mathFunctions.is_positive_semidefinite(mat, tol=1e-12)[source]¶
Tests mat for positive semidefiniteness.
Checking whether all eigenvalues of mat are nonnegative within a certain tolerance
- Parameters
mat (npy.ndarray) – Matrix to test for positive semidefiniteness
tol (float, optional) – Absolute tolerance in determining nonnegativity due to loss of precision when computing the eigenvalues of mat. Defaults to
ALMOST_ZERO
- Returns
res
- Return type
bool or array of bool
See also