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

feat: Add option to eigs() to turn off eigenvector computation #3057

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

gwhitney
Copy link
Collaborator

@gwhitney gwhitney commented Oct 4, 2023

For large matrices, the eigenvector computation can be noticeably expensive
and so it's worthwhile to have a way to turn it off if the eigenvectors
will not be used.
Resolves #2180.

Note that this PR is stacked on #3037, so it should only be merged into develop after that one has been.

@josdejong josdejong mentioned this pull request Oct 5, 2023
6 tasks
@josdejong josdejong added this to the v12 milestone Oct 5, 2023
@josdejong josdejong changed the base branch from develop to v12 October 5, 2023 09:27
Copy link
Owner

@josdejong josdejong left a comment

Choose a reason for hiding this comment

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

Thanks Glen, this looks good. I made one small remark, can you have a look in to that?

It looks like the PR has merge conflicts, not sure what's going on. #3037 is merged now, feel free to create a new PR if that's easier than fixing these conflicts.

Note that I changed the PR to merge into the v12 branch.

src/function/matrix/eigs.js Show resolved Hide resolved
  For large matrices, the eigenvector computation can be noticeably expensive
  and so it's worthwhile to have a way to turn it off if the eigenvectors
  will not be used.
  Resolves josdejong#2180.
  And also a fix for a small bug that the new test uncovered.
@gwhitney
Copy link
Collaborator Author

gwhitney commented Oct 5, 2023

I guess I need to add a matrix with options object test? Will try that.

@gwhitney
Copy link
Collaborator Author

gwhitney commented Oct 6, 2023

OK, I guess codecov is pointing out there is now useless code in complexEigs.js. Will take that out.

@josdejong
Copy link
Owner

Thanks for the latest updates, I'll now merge this PR in the v12 branch.

@josdejong josdejong merged commit fba5baf into josdejong:v12 Oct 20, 2023
9 checks passed
@josdejong
Copy link
Owner

Published in v12.0.0 now, thanks again!

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.

Allow eigs to only find eigenvalues, not eigenvectors
2 participants