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

Support starting vec #141

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Conversation

haampie
Copy link
Member

@haampie haampie commented Feb 20, 2024

Closes #91

This allows

partialschur(rand(100, 100) v1=rand(100))

Just V, V_tmp, H and Q are in ArnoldiWorkspace. Further allocations are one-dimensional and tiny (and actually the householder reflector can be computed in-place in H now #139 is merged)

As a follow-up, partialschur(A, ::ArnoldiWorkspace) could be implemented to let users allocate themselves, which is also useful for supporting GPU arrays. I think easiest would be with unified memory, cause then I don't really have to sprinkle copies to and from GPU around.

@haampie haampie mentioned this pull request Feb 20, 2024
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (55a09aa) 95.73% compared to head (255b8f1) 96.69%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
+ Coverage   95.73%   96.69%   +0.95%     
==========================================
  Files          10       10              
  Lines         845      787      -58     
==========================================
- Hits          809      761      -48     
+ Misses         36       26      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@haampie haampie changed the title Support initial starting vec Support starting vec Feb 20, 2024
@haampie haampie merged commit 3cb957d into JuliaLinearAlgebra:master Feb 21, 2024
13 checks passed
@haampie haampie deleted the feature/initial-vec branch February 21, 2024 17:55
haampie added a commit that referenced this pull request Feb 22, 2024
Adds a keyword arg `partialschur(...; v1)` which the vector that induces the Krylov subspace.

Co-authored-by: Samuel Powell <[email protected]>
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.

Feature request: Allow an initial start-vector
1 participant