tf.keras.ops.eig

Computes the eigenvalues and eigenvectors of a square matrix.

x Input tensor of shape (..., M, M).

A tuple of two tensors: a tensor of shape (..., M) containing eigenvalues and a tensor of shape (..., M, M) containing eigenvectors.