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

Remove unused code (reference to undefined msg) #117

Merged
merged 6 commits into from
Feb 7, 2025
Merged

Conversation

lkdvos
Copy link
Collaborator

@lkdvos lkdvos commented Feb 5, 2025

This should in principle be caught by tests...

This should in principle be caught by tests...
@lkdvos lkdvos changed the title Remove unused code (reference to undefined msg Remove unused code (reference to undefined msg) Feb 5, 2025
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.97%. Comparing base (fb56bbc) to head (1aaa88e).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/eigsolve/arnoldi.jl 42.85% 4 Missing ⚠️
src/eigsolve/golubye.jl 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
- Coverage   88.07%   87.97%   -0.10%     
==========================================
  Files          32       32              
  Lines        3395     3393       -2     
==========================================
- Hits         2990     2985       -5     
- Misses        405      408       +3     

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

@lkdvos lkdvos requested a review from Jutho February 5, 2025 20:47
@Jutho
Copy link
Owner

Jutho commented Feb 6, 2025

I guess I was lazy and did not actually test the output:

From test/eigsolve.jl line 27-31:

           alg = Lanczos(; orth=orth, krylovdim=n, maxiter=1, tol=tolerance(T),
                          verbosity=4)
            @test_logs min_level = Logging.Warn eigsolve(wrapop(A, Val(mode)),
                                                         wrapvec(v, Val(mode)),
                                                         n1, :SR, alg)

This doesn't even capture the error because the whole @info block is disabled by Logging I assume. I am going to push some further refinements and better tests to this branch.

Comment on lines 351 to 356
if eltype(fact) <: Real && krylovdim < 4
error("krylov dimension should be at least 4 to avoid getting stuck in the Arnoldi process in real arithmetic")
elseif krylovdim < 2
error("krylov dimension should be at least 2 to avoid getting stuck in the Arnoldi process in complex arithmetic")
end

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Does this mean that we cannot factorize small matrices using KrylovKit? It would have some additional complications for working with TensorKit, where the blocks could end up quite small.

@Jutho
Copy link
Owner

Jutho commented Feb 6, 2025

Ok, I think this is ready @lkdvos . Will you merge?
Do not yet tag the new version, I will also add a reallssolve implementation.

@lkdvos
Copy link
Collaborator Author

lkdvos commented Feb 7, 2025

I don't have the rights to approve this, but good to go for me!

@Jutho Jutho merged commit 8e9f9df into master Feb 7, 2025
13 of 16 checks passed
@Jutho Jutho deleted the lkdvos-patch-1 branch February 7, 2025 07:56
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.

2 participants