torch.linalg.eigh
torch.linalg.eigh(A, UPLO='L', *, out=None)
Computes the eigenvalue decomposition of a complex Hermitian or
   real symmetric matrix.
Letting \mathbb{K} be \mathbb{R} or \mathbb{C}, the eigenvalue
   decomposition of a complex Hermitian or real symmetric matrix A
   \in \mathbb{K}^{n \times n} is defined as
  A = Q \operatorname{diag}(\Lambda) Q^{\text{H}}\mathrlap{\qquad
  Q \in \mathbb{K}^{n \times n}, \Lambda \in \mathbb{R}^n}

where Q^{\text{H}} is the conjugate transpose when Q is complex,
   and the transpose when Q is real-valued. Q is orthogonal in the
   real case and unitary in the complex case.
Supports input of float, double, cfloat and cdouble dtypes. Also
   supports batches of matrices, and if "A" is a batch of matrices
   then the output has the same batch dimensions.
"A" is assumed to be Hermitian (resp. symmetric), but this is not
   checked internally, instead: