Hi Qiyao!



 Qiyao_Wei:

a = torch.tensor([[1,3,4],[2,2,4],[8,7,6]]).float()
d,q = torch.symeig(a, eigenvectors=True)


Your matrix, a, is not symmetric, but torch.symeig() expects a
symmetric matrix to be passed in.  Use torch.eig() for a general,
square, non-symmetric matrix.
(In practice, I believe that symeig() just uses the upper triangle of
the matrix you pass in.)
Best.
K. Frank