-
Notifications
You must be signed in to change notification settings - Fork 26.3k
update torch.eig() doc #10315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update torch.eig() doc #10315
Conversation
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ailzhang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
torch/_torch_docs.py
Outdated
| - **e** (*Tensor*): the right eigenvalues of ``a`` | ||
| - **v** (*Tensor*): the eigenvectors of ``a`` if ``eigenvectors`` is ``True``; otherwise an empty tensor | ||
| - **e** (*Tensor*): Shape :math:`(n \times 2)`. Each row is an eigenvalue of ``a``, | ||
| with the first element is the real part and the second element is the imanginary part. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
torch/_torch_docs.py
Outdated
| with the first element is the real part and the second element is the imanginary part. | ||
| The eigenvalues are not necessarily ordered. | ||
| - **v** (*Tensor*): If ``eigenvectors=False``, it's an empty tensor. | ||
| Otherwise this tensor of shape :math:`(n \times n)`, contains normalized (unit “length”) eigenvector info, |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| If the corresponding e[j] is a real number, column v[:, j] is the eigenvector corresponding to | ||
| eigenvalue e[j]. | ||
| If the corresponding e[j] and e[j + 1] eigenvalues form a complex conjugate pair, then the true | ||
| :math:`eigenvector[j] = v[:, j] + i * v[:, j + 1], eigenvector[j + 1] = v[:, j] - i * v[:, j + 1]`. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@ezyang Looks better now? :) |
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ailzhang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: This fixes pytorch#9383 Update torch.eig() doc, the complex part is written based on https://scc.ustc.edu.cn/zlsc/sugon/intel/mkl/mkl_manual/GUID-16EB5901-5644-4DA6-A332-A052309010C4.htm Pull Request resolved: pytorch#10315 Reviewed By: yf225 Differential Revision: D9200723 Pulled By: ailzhang fbshipit-source-id: d2e186fd24defbc4fdea6c2cf3dc4f7e05e1d170
Summary: This fixes pytorch#9383 Update torch.eig() doc, the complex part is written based on https://scc.ustc.edu.cn/zlsc/sugon/intel/mkl/mkl_manual/GUID-16EB5901-5644-4DA6-A332-A052309010C4.htm Pull Request resolved: pytorch#10315 Reviewed By: yf225 Differential Revision: D9200723 Pulled By: ailzhang fbshipit-source-id: d2e186fd24defbc4fdea6c2cf3dc4f7e05e1d170
This fixes #9383
Update torch.eig() doc, the complex part is written based on https://scc.ustc.edu.cn/zlsc/sugon/intel/mkl/mkl_manual/GUID-16EB5901-5644-4DA6-A332-A052309010C4.htm