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 bug where number type in stopping criterion was derived from tol instead of real(eltype(H)) #137

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

haampie
Copy link
Member

@haampie haampie commented Feb 17, 2024

Previously ArnoldiMethod.jl would accidentially pick eps(typeof(tol)) instead eps(real(typeof(residual)))

So, with bigfloat and tol = 1e-30 you would actually just get eps(Float64) accuracy, whereas tol = big(1e-30) would have given the requested tolerance.

This fixes that.

Copy link

codecov bot commented Feb 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2076220) 95.21% compared to head (4cd7904) 95.22%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #137   +/-   ##
=======================================
  Coverage   95.21%   95.22%           
=======================================
  Files          10       10           
  Lines         815      816    +1     
=======================================
+ Hits          776      777    +1     
  Misses         39       39           

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

test/partial_schur.jl Outdated Show resolved Hide resolved
@haampie haampie merged commit 1f70f76 into JuliaLinearAlgebra:master Feb 17, 2024
13 checks passed
@haampie haampie deleted the fix/number-type-bug branch February 17, 2024 15:32
haampie added a commit that referenced this pull request Feb 17, 2024
…` instead of real(eltype(H)) (#137)

Previously ArnoldiMethod.jl would accidentially pick `eps(typeof(tol))` instead `eps(real(typeof(residual)))`

So, with bigfloat and tol = 1e-30 you would actually just get eps(Float64) accuracy, whereas `tol = big(1e-30)` would have given the requested tolerance.

This fixes that.
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