# tf.linalg.eigh

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/linalg_ops.py#L438-L459) |

Computes the eigen decomposition of a batch of self-adjoint matrices.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.linalg.eigh`](https://www.tensorflow.org/api_docs/python/tf/linalg/eigh), [`tf.compat.v1.self_adjoint_eig`](https://www.tensorflow.org/api_docs/python/tf/linalg/eigh)

<br />

    tf.linalg.eigh(
        tensor, name=None
    )

Computes the eigenvalues and eigenvectors of the innermost N-by-N matrices
in `tensor` such that
`tensor[...,:,:] * v[..., :,i] = e[..., i] * v[...,:,i]`, for i=0...N-1.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | `Tensor` of shape `[..., N, N]`. Only the lower triangular part of each inner inner matrix is referenced. |
| `name` | string, optional name of the operation. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `e` | Eigenvalues. Shape is `[..., N]`. Sorted in non-decreasing order. |
| `v` | Eigenvectors. Shape is `[..., N, N]`. The columns of the inner most matrices contain eigenvectors of the corresponding matrices in `tensor` |

<br />