Skip to content
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

Fix SVD for slightly tall matrices, and other fixes. #175

Merged
merged 5 commits into from
May 30, 2024

Conversation

mgates3
Copy link
Collaborator

@mgates3 mgates3 commented Apr 6, 2024

  • For slightly tall (m > n and not m >> n) matrices, the internal U and VT matrices were incorrectly sized. Uhat and U1 are m x n, U2 and U3 are n x n. This solved a bug that showed with ./run_tests.py --xsmall svd. Added more matrix sizes so --quick would reveal the bug, too.

  • Also cleaned up the code a lot, pulled out common chunks. Allocated more memory to eliminated one redistribution of VT3.

  • Removed unused Reflectors from tb2bd. They were no longer needed after storing vectors in U and VT.

[Merged some fixes separately in #183 that were originally included here.]

@mgates3 mgates3 force-pushed the svd-fix-squarish branch from 5e9a943 to 015e55b Compare April 7, 2024 15:16
@mgates3 mgates3 force-pushed the svd-fix-squarish branch 3 times, most recently from c0af335 to c63ecda Compare May 30, 2024 06:08
@mgates3 mgates3 force-pushed the svd-fix-squarish branch from c63ecda to d074667 Compare May 30, 2024 18:48
Copy link
Collaborator Author

@mgates3 mgates3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-reviewed.

@mgates3 mgates3 merged commit d074667 into icl-utk-edu:master May 30, 2024
8 checks passed
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.

1 participant