skrf.mathFunctions.is_positive_definite

skrf.mathFunctions.is_positive_definite(mat, tol=1e-12)[source]

Tests mat for positive definiteness.

Verifying that (1) mat is symmetric (2) it’s possible to compute the Cholesky decomposition of mat.

Parameters:
  • mat (npy.ndarray) – Matrix to test for positive definiteness

  • tol (float, optional) – Absolute tolerance. Defaults to ALMOST_ZERO

Returns:

res

Return type:

bool or array of bool