tf.eigvals

View source on GitHub

Computes the eigenvalues of one or more matrices.

Aliases:

  • tf.compat.v2.eigvals
  • tf.compat.v2.linalg.eigvals
  • tf.linalg.eigvals
tf.eigvals(
    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[..., :, :].