code: def is_single_matrix_pd(mat):
      """Check if 2D square matrix is positive definite."""
      if mat.shape[0] != mat.shape[1]:
          return False
      if mat.dtype in [_np.complex64, _np.complex128]:
          if not _is_hermitian(mat):
              return False
          eigvals = _np.linalg.eigvalsh(mat)
          return _np.min(_np.real(eigvals)) > 0
      try:
          _np.linalg.cholesky(mat)
          return True
      except _np.linalg.LinAlgError as e:
          if e.args[0] == "Matrix is not positive definite":
              return False
          raise e
  
file_path: geomstats/geomstats/_backend/_shared_numpy/linalg.py
imports: from ._dispatch import _common
  from ._dispatch import numpy
  from ._dispatch import scipy
label_desc: Use image node_id 8 for calling a global function with example usage: is_single_matrix_pd(mat) and returns: False, unknown, True, False, False