Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Oct 31, 2017

Fixes #2088.

Previously when eigenvector=False symeig returns some value for the eigenvectors. This zeros them out. Not sure if this is 100% necessary because it does impact performance a little, but it is nice if someone makes a mistake and tries to use them.

Test Plan

import torch as th
x = th.ones(10,10)
[e,V] = th.symeig(x, eigenvectors=True)
print(V) # presumably the eigenvectors
[e,V] = th.symeig(x, eigenvectors=False) 
print(V) # assert prints zeros

@soumith soumith merged commit d905a90 into pytorch:master Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants