TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.linalg.eigvalsh

TensorFlow 1 version View source on GitHub

Computes the eigenvalues of one or more self-adjoint matrices.

Aliases:

  • tf.compat.v1.linalg.eigvalsh
  • tf.compat.v1.self_adjoint_eigvals
  • tf.compat.v2.linalg.eigvalsh
tf.linalg.eigvalsh(
    tensor,
    name=None
)

Args:

  • tensor: Tensor of shape [..., N, N].
  • name: string, optional name of the operation.

Returns:

  • e: Eigenvalues. Shape is [..., N]. The vector e[..., :] contains the N eigenvalues of tensor[..., :, :].