-
Notifications
You must be signed in to change notification settings - Fork 27.7k
torch.eig should return complex tensor #43081
Copy link
Copy link
Closed
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: bc-breakingRelated to a BC-breaking changeRelated to a BC-breaking changemodule: complexRelated to complex number support in PyTorchRelated to complex number support in PyTorchmodule: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmultriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Metadata
Metadata
Assignees
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: bc-breakingRelated to a BC-breaking changeRelated to a BC-breaking changemodule: complexRelated to complex number support in PyTorchRelated to complex number support in PyTorchmodule: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmultriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Currently the return value of
torch.eigis:eigenvalues (Tensor):
eigenvectors (Tensor):
This behavior is because of historical reason when complex tensors was not a thing. Since complex tensor is now supported,
the return value of
eigenvaluesshould then be a complex tensor of shape(n,), andeigenvectorsshould also be a complex tensor of shape(n,n)whereeignvectors[:,j]is the jth eigen vector.cc @ezyang @anjali411 @dylanbespalko @mruberry @gchanan @vincentqb @vishwakftw @jianyuh @nikitaved @pearu