Computes the eigenvalues and (optionally) right eigenvectors of each inner matrix in
input such that input[..., :, :] = v[..., :, :] * diag(e[..., :]). The eigenvalues
are sorted in non-decreasing order.
# a is a tensor.# e is a tensor of eigenvalues.# v is a tensor of eigenvectors.e,v=eig(a)e=eig(a,compute_v=False)
Args
input
A Tensor. Must be one of the following types: float32, float64, complex64, complex128.
Tensor input of shape [N, N].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[]]