Remove deprecated torch.eig (#70982)

The time has come to remove deprecated linear algebra related functions. This PR removes `torch.eig`.

cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70982
Approved by: https://github.com/Lezcano, https://github.com/malfet
This commit is contained in:
Ivan Yashchuk
2022-09-09 21:31:57 +00:00
committed by PyTorch MergeBot
parent c4a5255df7
commit 01c54ad6de
27 changed files with 27 additions and 714 deletions

View File

@ -638,6 +638,11 @@ class Tensor(torch._C._TensorBase):
return solve(self, other)
def eig(self, eigenvectors=False):
from ._linalg_utils import eig
return eig(self, eigenvectors=eigenvectors)
def lu(self, pivot=True, get_infos=False):
r"""See :func:`torch.lu`"""
# If get_infos is True, then we don't need to check for errors and vice versa